-
Notifications
You must be signed in to change notification settings - Fork 2
Convert
Doug Fenstermacher edited this page Nov 24, 2016
·
2 revisions
For handling unit conversions, a conversion namespace is included in FitnessJS. The conversion module is broken into 3 parts:
- UnitConverter
- SwainConverter
- TemperatureConverter
The UnitConverter can convert between Metric and Imperial units for:
- acceleration
- area
- distance
- energy
- force
- mass
- METs
- pace
- pressure
- speed
- time
- volume
- weight
The SwainConverter is used to convert %HRmax to %VO2Max, and vice versa. The SwainConverter formulas are used heavily in the running namespace for estimating paces based on heart rate.
The TemperatureConverter is used to convert temperature between Celsius (C), Farenheit(F), Kelvin (K), and Rankin (R) units.