/** * Returns the altitude of the aircraft at the beginning of this leg * [m MSL], as specified in the MacCready calculation input * parameters. */ gcc_pure double GetStartAltitude() const { return GetRequiredAltitude() + altitude_difference; }
/** * Calculate the height above/below final glide, assuming pure * glide. * * @param start_altitude the current aircraft altitude */ gcc_pure double GetPureGlideAltitudeDifference(double start_altitude) const { return start_altitude - GetRequiredAltitude(); }
/** * Calculate the height above/below final glide, assuming pure * glide. * * @param start_altitude the current aircraft altitude */ gcc_pure fixed GetPureGlideAltitudeDifference(fixed start_altitude) const { return start_altitude - GetRequiredAltitude(); }