pytransform3d.batch_rotations.norm_vectors

pytransform3d.batch_rotations.norm_vectors(V, out=None)[source]

Normalize vectors.

Parameters
Varray-like, shape (…, n)

nd vectors

outarray, shape (…, n), optional (default: new array)

Output array to which we write the result

Returns
V_unitarray, shape (…, n)

nd unit vectors with norm 1 or zero vectors

Examples using pytransform3d.batch_rotations.norm_vectors