Makes this vector have a magnitude of 1.
When normalized, a vector keeps the same direction but its length is 1.0.
Note that this function will change the current vector. If you
want to keep the current vector unchanged, use normalized variable.
If this vector is too small to be normalized it will be set to zero.
Additional resources: normalized variable.
| Parameter | Description |
|---|---|
| value | The vector to normalize. |
Vector2
A new vector with the same direction as value but with a magnitude of 1. If value is too small to be normalized, the result is the zero vector.
Creates a normalized copy of the given vector.