Adjust the Angle so that it lies between -PI (exclusive) and PI (inclusive)
if posAngle is False, or between 0 (inclusive) and 2 * PI (exclusive)
if posAngle is True.
Works in Radians.
[Visual Basic] Overloads Public Shared Function AdjustAngleRad( _ ByVal angleInRadians As Decimal, _ ByVal posAngle As Boolean _ ) As Decimal
[C#] public static decimal AdjustAngleRad( decimalangleInRadians, boolposAngle );
Parameters
angleInRadians
Angle in Radians
posAngle
When true the Angle returned is Positive, ie
between 0 and 2PI, when false then the Angle is between -PI and PI.