Normalize
A vector's direction, with a length of 1.
Node id vector/normalize
The Normalize node outputs a vector pointing the same way as vector, but
of length 1: (3, 4) becomes (0.6, 0.8).
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| vector | Vec2 | { x: 0, y: 0 } |
Outputs
| Name | Type | Notes |
|---|---|---|
| vector | Vec2 |
Behaviour
- Direction only. Normalizing keeps where a vector points and drops how long it is. Multiply the result by a number to get a vector of that length.
- Zero vector. (0, 0), also the default, has no direction: the result is (NaN, NaN), with no error, as for the math nodes.
Related nodes
- Multiply Vector: sets the length after normalizing.
- Vector From Angle: a length-1 vector from an angle.