Package edu.wpi.first.units
Class UnitBuilder.MappingBuilder
java.lang.Object
edu.wpi.first.units.UnitBuilder.MappingBuilder
- Enclosing class:
- UnitBuilder<U extends Unit>
Helper class used for safely chaining mapping builder calls.
-
Method Summary
Modifier and TypeMethodDescriptiontoOutputRange
(double minOutput, double maxOutput) Finalizes the mapping by defining the output range.
-
Method Details
-
toOutputRange
Finalizes the mapping by defining the output range.- Parameters:
minOutput
- the minimum output value (does not have to be absolute)maxOutput
- the maximum output value (does not have to be absolute)- Returns:
- the unit builder, for continued chaining
-