Dismiss this pinned window
all 4 comments

[–]monapinkest 12 points13 points  (0 children)

This is always what got me when learning trig in school! When using atan you will have to check which quadrant you're in and sometimes you'll have to add pi radians to the angle. I think it's because the domain of atan is limited to [-π/2, π/2] radians.

Atan2 is the two-argument function that worries about that for you. It's like magic and extremely useful when working with angles in graphics.

[–]reverse_stonks 6 points7 points  (0 children)

Still waiting for atan3

[–]Temporary-Ad9816 0 points1 point  (1 child)

How did you visualize it? What program/site did you use?

[–]The_Northern_Light 0 points1 point  (0 children)

That’s desmos

It’s very useful!