Click or drag to resize

Trig.TryPutAngleInRange 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: 25.1.421.0 (25.1.421.0)
Syntax
public static bool TryPutAngleInRange(
	double minimum,
	double maximum,
	double angle,
	out double result
)

Parameters

minimum
Type: System.Double
The minimum angle value.
maximum
Type: System.Double
The maximum angle value.
angle
Type: System.Double
The angle value being checked.
result
Type: System.Double
On return, the final angle value after attempting to place it within the indicated range.

Return Value

Type: Boolean
true if result is within the indicated range of values; otherwise false.
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