Vector Length
Prev: Catmull-Rom Spline | Next: Cross Product |
The length of a vector can be computed as
In CG, we normally need a vector which is unit length, aka a normalized vector. To obtain a normalized vector just divide its components by the vector’s magnitude.
i.e., the components of vector will be:
Prev: Catmull-Rom Spline | Next: Cross Product |