convertSpeed method
Covert Speed object to another unit as defined in toUnit
.
NOTE: method must be performed on the Speed object
Example takes CAS from 148.7 knots to ft/sec:
Speed(value: 148.7, type: SpeedType.cas).convertSpeed(SpeedUnit.fps);
Implementation
double convertSpeed(SpeedUnit fromUnit, SpeedUnit toUnit) =>
_convertSpeedResultToInputUnit(
_convertSpeedToKnots(value, fromUnit), toUnit);