angle_to#

VectorArray.angle_to(other)[source]#

Calculate the angles to vector other.

Calculates \(\arccos\vec{v}_1 \cdot \vec{v}_2 / (v_1 v_2)\).

Parameters:
otherVector or VectorArray
Returns:
anglesndarray

The angles in rad within [0, π].