val | The value to round. |
snap | The increment to round to. |
float The rounded value.
Rounds value
to the closest multiple of snap
.
val | The value to round. |
snap | The increment to round to. |
Vector2 The rounded value.
Rounds value
to the closest multiple of snap
.
val | The value to round. |
snap | The increment to round to. |
axis | Restrict snapping to the components on these axes. |
Vector3 The rounded value.
Rounds value
to the closest multiple of snap
.