Пример #1
0
        /// <summary>
        /// Creates a new altitude with a type that needs no value
        /// </summary>
        /// <param name="type">altitude type</param>
        public Altitude(AltitudeType type)
        {
            Debug.Assert(
                type == AltitudeType.GND || type == AltitudeType.Unlimited,
                "type must be GND or Unlimited");

            this.Type = type;
        }
Пример #2
0
 /// <summary>
 /// Creates a new altitude value with type
 /// </summary>
 /// <param name="valueInFeet">altitude value, in feet</param>
 /// <param name="type">altitude type</param>
 public Altitude(double valueInFeet, AltitudeType type)
 {
     this.Value = valueInFeet;
     this.Type  = type;
 }