vector.normalize
EditReturns a normalized version of the input vector. This is a vector that points in the same direction as the original, but has a length of 1.
normalized = vector.normalize(v)Arguments
| Name | Type | Description |
| v | vector | The vector to normalize. |
Returns
| Name | Type | Description |
| normalized | vector | The normalized vector. |
Notes
When given a zero-length vector, the input vector is returned unchanged.