Package jmri.jmrix.bachrus
Class Speed
- java.lang.Object
-
- jmri.jmrix.bachrus.Speed
-
public class Speed extends java.lang.Object
Useful stuff for speed conversion
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Speed.Unit
-
Field Summary
Fields Modifier and Type Field Description (package private) static float
KPH_TO_MPH
(package private) static float
MPH_KPH_FACTOR
(package private) static float
MPH_TO_KPH
-
Constructor Summary
Constructors Constructor Description Speed()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static float
kphToMph(float k)
static float
mphToKph(float m)
-
-
-
Field Detail
-
MPH_KPH_FACTOR
static final float MPH_KPH_FACTOR
- See Also:
- Constant Field Values
-
MPH_TO_KPH
static final float MPH_TO_KPH
- See Also:
- Constant Field Values
-
KPH_TO_MPH
static final float KPH_TO_MPH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Speed
public Speed()
-
-