src/AircraftTrajectories/Models/Space3D/Point3D.cs
/// <summary>
/// Calculates the heading to the given Point3D, based on metric coordinates
/// </summary>
/// <param name="other"></param>
/// <returns></returns>
Calculates the heading to the given Point3D, based on metric coordinates
Calculates the heading to the given Point3D based on metric coordinates
public double HeadingTo(Point3D other)
        {
            var dX = (other.X - X);
            var dY = (other.Y - Y);
            return ((90 - (180 / Math.PI) * Math.Atan2(dY, dX)) + 360) % 360;
        }
public double HeadingTo ( Point3D other ) { var dX = ( other . X - X ) ; var dY = ( other . Y - Y ) ; return ( ( 90 - ( 180 / Math . PI ) * Math . Atan2 ( dY , dX ) ) + 360 ) % 360 ; }
Calculates the heading to the given Point3D, based on metric coordinates
Calculates the heading to the given Point3D based on metric coordinates
None
other
Point3D
None