snapAngle
Public function
Clamp rotation to even segments.
Signature
function snapAngle(r: number, segments: number): number
Parameters
Name | Description |
---|---|
|
The rotation in radians. |
|
The number of segments. |
Returns
number
Source
Public function
Clamp rotation to even segments.
function snapAngle(r: number, segments: number): number
Name | Description |
---|---|
|
The rotation in radians. |
|
The number of segments. |
number