pytransform3d.rotations.norm_vector

pytransform3d.rotations.norm_vector(v)[source]

Normalize vector.

Parameters
varray-like, shape (n,)

nd vector

Returns
uarray, shape (n,)

nd unit vector with norm 1 or the zero vector

Examples using pytransform3d.rotations.norm_vector