Eg if a is the origin, and b is another point,
in degrees one would get 0 to -180 when b was above a.
-180 would be b in line with a.
Same for under a.
Providing a third point c gives the interior angle, where b is the middle point.
See also angleRadianCircle which returns coordinates on 0..Math.Pi*2
range. This avoids negative numbers.
Returns the angle in radians between
a
andb
.Eg if
a
is the origin, andb
is another point, in degrees one would get 0 to -180 whenb
was abovea
. -180 would beb
in line witha
. Same for undera
.Providing a third point
c
gives the interior angle, whereb
is the middle point.See also angleRadianCircle which returns coordinates on 0..Math.Pi*2 range. This avoids negative numbers.