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.3.420.0 (24.3.420.0)
Syntax public static double PutAngleInRange(
double minimum,
double maximum,
double angle
)
Public Shared Function PutAngleInRange (
minimum As Double,
maximum As Double,
angle As Double
) As Double
public:
static double PutAngleInRange(
double minimum,
double maximum,
double angle
)
static member PutAngleInRange :
minimum : float *
maximum : float *
angle : float -> float
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:
DoubleThe final angle value after attempting to place it within the indicated range.
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | Thrown 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