Static function
NanosMath.ClampAxis
Clamps an angle to the range of [0, 360]
Syntax
NanosMath.ClampAxis(value)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
value
|
number | — | The number to be clamped |
Returns
- number the number clamped
Examples
local axis = NanosMath.ClampAxis(720)