normalize ( v -- w )
Factor handbook » The language » Numbers » Vector operations » Vector arithmetic

Prev:vtruncate ( v -- w )
Next:vneg ( v -- w )


Vocabulary
math.vectors

Inputs
va sequence of at least 1 non-zero number


Outputs
wa sequence of numbers


Word description
Outputs a vector with the same direction as v, but length 1.

Definition