示例#1
0
 /**
  * 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;
 }
示例#2
0
 /**
  * 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();
 }
示例#3
0
 /**
  * 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();
 }