Click or drag to resize

TrigPutAngleInRange Method

Attempts to put an angle within the indicated range of values.

Namespace:  AGI.Foundation
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public static double PutAngleInRange(
	double minimum,
	double maximum,
	double angle
)

Parameters

minimum
Type: SystemDouble
The minimum angle value.
maximum
Type: SystemDouble
The maximum angle value.
angle
Type: SystemDouble
The angle value being checked.

Return Value

Type: Double
The final angle value after attempting to place it within the indicated range.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown if the value of angle cannot be placed within the open interval defined by the specified minimum and maximum.
Remarks
The range of values is considered to be an open interval and therefore does not include the actual minimum and maximum values.
See Also