The formula, angle(vector.b,vector.a)
, that I sent, give results
in the four quadrants and for any coordinates xa,ya
and xb,yb
.
For coordinates xa=ya=0
and or xb=yb=0
is undefined.
The angle can be bigger or smaller than pi
, and can be positive
or negative.