]> git.mxchange.org Git - flightgear.git/blob - src/ATC/ATCutils.hxx
A bunch of reorg and clean up of the KR 87 (adf) code including some
[flightgear.git] / src / ATC / ATCutils.hxx
1 // Utility functions for the ATC / AI subsytem declarations
2
3 #include <math.h>
4 #include <simgear/math/point3d.hxx>
5
6 // Given two positions, get the HORIZONTAL separation
7 double dclGetHorizontalSeparation(Point3D pos1, Point3D pos2);
8
9 // Given a position (lat/lon/elev), heading, vertical angle, and distance, calculate the new position.
10 // Assumes that the ground is not hit!!!  Expects heading and angle in degrees, distance in meters.
11 Point3D dclUpdatePosition(Point3D pos, double heading, double angle, double distance);