]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/ATCutils.hxx
Add David Culp's AI model manager code which is derived from David Luff's AI/ATC...
[flightgear.git] / src / ATC / ATCutils.hxx
index 360ecd8378d53da06a7810f86e485d59a89727d3..7dfa1569d90b098727fb21b405612d6beff6f4dd 100644 (file)
@@ -40,6 +40,9 @@ SG_USING_STD(string);
 // Convert any number to spoken digits
 string ConvertNumToSpokenDigits(string n);
 
+// Convert an integer to spoken digits
+string ConvertNumToSpokenDigits(int n);
+
 // Convert a 2 digit rwy number to a spoken-style string
 string ConvertRwyNumToSpokenString(int n);
 
@@ -77,6 +80,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);
+
 
 /*******************************
 *
@@ -100,5 +107,5 @@ double dclGetAirportElev( const string& id );
 ****************/
 
 // 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);