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