EsbDecimals - a Free Subset of ESBPCS for .NET

DecimalOps.AdjustAngleRad Method

Adjust the Angle so that it reduced to an equivalent angle within a smaller range of values. Works in Radians.

Methods for decimal, double and int Parameters. Also their are overloaded versions that allow whether you want the angle reduced to a postive angle or not.

Overload List

Adjust the Angle so that it lies between -PI (exclusive) and PI (inclusive) Works in Radians.

public static decimal AdjustAngleRad(decimal);

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.

public static decimal AdjustAngleRad(decimal,bool);

Adjust the Angle so that it lies between -PI (exclusive) and PI (inclusive) Works in Radians.

public static decimal AdjustAngleRad(double);

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.

public static decimal AdjustAngleRad(double,bool);

Adjust the Angle so that it lies between -PI (exclusive) and PI (inclusive) Works in Radians.

public static decimal AdjustAngleRad(int);

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.

public static decimal AdjustAngleRad(int,bool);

See Also

DecimalOps Class | Esb.Math Namespace