Package edu.wpi.first.units
Class Dimensionless
public class Dimensionless extends Unit<Dimensionless>
A type of unit that corresponds to raw values and not any physical dimension, such as percentage.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Dimensionless(double baseUnitEquivalent, String name, String symbol)
Creates a new unit with the given name and multiplier to the base unit. -
Method Summary
Methods inherited from class edu.wpi.first.units.Unit
convertFrom, equals, equivalent, fromBaseUnits, getConverterFromBase, getConverterToBase, hashCode, mult, name, of, ofBaseUnits, one, per, per, symbol, toBaseUnits, toString, zero
-
Constructor Details
-
Dimensionless
Creates a new unit with the given name and multiplier to the base unit.- Parameters:
baseUnitEquivalent
- the multiplier to convert this unit to the base unit of this type.name
- the name of the unitsymbol
- the symbol of the unit
-