pytransform3d.batch_rotations.angles_between_vectors

pytransform3d.batch_rotations.angles_between_vectors(A, B)[source]

Compute angle between two vectors.

Parameters
Aarray-like, shape (…, n)

nd vectors

Barray-like, shape (…, n)

nd vectors

Returns
anglesarray, shape (…)

Angles between pairs of vectors from A and B

Examples using pytransform3d.batch_rotations.angles_between_vectors