toEAS method
Convert the speed to Equivalent Airspeed at a defined Atmo point
atAtmoPoint
. The converted speed unit is the same as the input
speed unit.
Implementation
double toEAS(Atmo atAtmoPoint) {
double resultInKnots;
switch (type) {
case SpeedType.cas:
resultInKnots =
speedKCASToKEAS(_speedInKnots, atAtmoPoint.getHpInFeet());
break;
case SpeedType.eas:
return value;
case SpeedType.tas:
resultInKnots = speedKTASToKEAS(_speedInKnots,
atAtmoPoint.getHpInFeet(), _getDeltaISAInCelsius(atAtmoPoint));
break;
case SpeedType.mach:
resultInKnots = speedMachToKEAS(value, atAtmoPoint.getHpInFeet());
break;
}
// Return output speed in same unit as input speed was provided.
return _convertSpeedResultToInputUnit(resultInKnots, unitSpeed);
}