The length of a vector can be computed as
$latex mag = \sqrt[]{x^{2} + y^{2} + z^{2}}&fg=000000$
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: