Row-wise angle between direction vectors, as used for joint angles.
With no
axis, the included angleacos(u . v / |u||v|), in[0, pi].With an
axis, both vectors are projected onto the plane perpendicular to it, and the angle turns fromutovabout the axis by the right-hand rule, in[-pi, pi]. For 2D vectors,c(0, 0, 1)gives the signed angle fromxtowardy.
Vectors need not be unit length. A zero vector, or one parallel to the
axis, gives NA.