]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/ATCutils.hxx
Moved random ground cover object management code (userdata.[ch]xx) over
[flightgear.git] / src / ATC / ATCutils.hxx
index 9ab479884b8b6764d2f6386570453a56e815b429..420b6163251cdfb73331eee86ccdaa80a446073f 100644 (file)
@@ -77,6 +77,10 @@ double GetHeadingFromTo(Point3D A, Point3D B);
 // Given a heading (in degrees), bound it from 0 -> 360
 void dclBoundHeading(double &hdg);
 
+// smallest difference between two angles in degrees
+// difference is negative if a1 > a2 and positive if a2 > a1
+double GetAngleDiff_deg( const double &a1, const double &a2);
+
 
 /*******************************
 *
@@ -95,9 +99,10 @@ double dclGetAirportElev( const string& id );
 
 /****************
 *
-* Runways
+*   Runways
 *
 ****************/
 
 // Given a Point3D (lon/lat/elev) and an FGRunway struct, determine if the point lies on the runway
-bool OnRunway(Point3D pt, FGRunway* rwy);
+bool OnRunway(Point3D pt, const FGRunway& rwy);
+