src/AircraftTrajectories/Models/Optimisation/FlightSimulator.cs
/// <summary>
/// Return the angle difference from A to B
/// </summary>
/// <param name="a">The left most angle (in radians)</param>
/// <param name="b">The right most angle (in radians)</param>
/// <returns></returns>
Return the angle difference from A to B
Return the angle difference from A to B
public double AngleDifference(double a, double b)
        {
            if (a > b)
            {
                if (a < Math.PI)
                {
                    return SmallAngleDifference(a, Math.PI) + Math.PI + SmallAngleDifference(0, b);
                }
                return SmallAngleDifference(a, 0) + SmallAngleDifference(0, b);
            }
            return SmallAngleDifference(a, b);
        }
public double AngleDifference ( double a , double b ) { if ( a > b ) { if ( a < Math . PI ) { return SmallAngleDifference ( a , Math . PI ) + Math . PI + SmallAngleDifference ( 0 , b ) ; } return SmallAngleDifference ( a , 0 ) + SmallAngleDifference ( 0 , b ) ; } return SmallAngleDifference ( a , b ) ; }
Return the angle difference from A to B
Return the angle difference from A to B
None
a
double
The left most angle (in radians)
The left most angle ( in radians )
b
double
The right most angle (in radians)
The right most angle ( in radians )