Summary
This function constraints angle between min and max.
- Namespace
- ASL
.PlayerSystem - Containing Type
- SmoothMouseLook
Syntax
public static float ClampAngle(float angle, float min, float max)
Parameters
| Name | Type | Description |
|---|---|---|
| angle | float | angle to clmap |
| min | float | Smallest degree that can be returned. |
| max | float | Largest degree that can be returned. |
Return Value
| Type | Description |
|---|---|
| float | float value of the angle, in degrees after clamping. |