Пример #1
0
 public Airspace(IFlightTrackerMultiple flightTracker, AirspaceArea airspaceArea)
 {
     AirspaceArea  = airspaceArea;
     Content       = new List <IFlightTrackerSingle>();
     FlightTracker = flightTracker;
     FlightTracker.FlightTracksUpdated += OnFlightTracksUpdated;
 }
Пример #2
0
 public bool IsInsideAirspace(FTDataPoint dp, AirspaceArea area)
 {
     if (dp.Altitude > area.AltitudeBoundaryLower && dp.Altitude < area.AltitudeBoundaryUpper &&
         dp.X > area.SouthWestCornerX && dp.X < area.NorthEastCornerX &&
         dp.Y > area.SouthWestCornerY && dp.Y < area.NorthEastCornerY)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }