Package frc.lib5k.utils
Class Measurement
- java.lang.Object
-
- frc.lib5k.utils.Measurement
-
public class Measurement extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Measurement()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
convert(double value, double units_from, double units_to)
Converts a measurement into specified units
-
-
-
Method Detail
-
convert
public static double convert(double value, double units_from, double units_to)
Converts a measurement into specified units- Parameters:
value
- the value of the measurement e.g. 10units_from
- the unit type to convert from e.g. Measurement.MMunits_to
- the unit type to convert to e.g. Measurement.IN
-
-