Module: Converter::Distance
- Defined in:
- lib/calcpace/converter.rb
Constant Summary collapse
- MI_TO_KM =
One international mile is exactly 1609.344 m. Every mile-based factor derives from this single value so that no two call sites — a pace band, a distance conversion, an age-grading tolerance — can disagree about how long a mile is.
1.609344- KM_TO_MI =
1 / MI_TO_KM
- NAUTICAL_MI_TO_KM =
1.852- KM_TO_NAUTICAL_MI =
0.539957- METERS_TO_KM =
0.001- KM_TO_METERS =
1000- MI_TO_METERS =
MI_TO_KM * 1000
- METERS_TO_MI =
1 / MI_TO_METERS
- METERS_TO_FEET =
3.28084- FEET_TO_METERS =
0.3048- METERS_TO_YARDS =
1.09361- YARDS_TO_METERS =
0.9144- METERS_TO_INCHES =
39.3701- INCHES_TO_METERS =
0.0254- KM_TO_YARDS =
1093.61- YARDS_TO_KM =
0.0009144- KM_TO_FEET =
3280.84- FEET_TO_KM =
0.0003048- KM_TO_INCHES =
39_370.1- INCHES_TO_KM =
0.0000254- MI_TO_YARDS =
1760- YARDS_TO_MI =
1.0 / MI_TO_YARDS
- MI_TO_FEET =
5280- FEET_TO_MI =
1.0 / MI_TO_FEET
- MI_TO_INCHES =
63_360- INCHES_TO_MI =
1.0 / MI_TO_INCHES