DemoScriptClampAngle Method |
Clamp an angle
Namespace:
DigitalRuby.ThunderAndLightning
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public static float ClampAngle(
float angle,
float min,
float max
)
Public Shared Function ClampAngle (
angle As Single,
min As Single,
max As Single
) As Single
public:
static float ClampAngle(
float angle,
float min,
float max
)
static member ClampAngle :
angle : float32 *
min : float32 *
max : float32 -> float32
Parameters
- angle
- Type: SystemSingle
Angle - min
- Type: SystemSingle
Min angle - max
- Type: SystemSingle
Max angle
Return Value
Type:
SingleClamped angle
See Also