A nonzero vector is normalized by dividing it by its length. The resulting vector has length 1 and lies in the same direction.[more]
In 2D, the length of is given by Pythagoras's formula: .
In 3D, the length of is .
In any dimension, the normalized vector of is .[less]