Get the signed angle from a to b, in the range (-PI, PI].
a
b
Positive is counter-clockwise. Returns 0 if either vector is zero length.
Unlike angle, this distinguishes the two directions of rotation, which is what joint limits and turn directions need.
the first operand
the second operand
the signed angle in radians
Get the signed angle from
atob, in the range (-PI, PI].Positive is counter-clockwise. Returns 0 if either vector is zero length.
Unlike angle, this distinguishes the two directions of rotation, which is what joint limits and turn directions need.