pytransform3d.rotations.angle_between_vectors

pytransform3d.rotations.angle_between_vectors(a, b, fast=False)[source]

Compute angle between two vectors.

Parameters
aarray-like, shape (n,)

nd vector

barray-like, shape (n,)

nd vector

fastbool, optional (default: False)

Use fast implementation instead of numerically stable solution

Returns
anglefloat

Angle between a and b

Examples using pytransform3d.rotations.angle_between_vectors