please help me understand:
- What’s the point of ArcTan2?
- In what situation would a person prefer using it over ArcTan1?
- What is its Mathematical function?
My thoughts:
The function of ArcTan1 is ArcTan1(y/x) = θ.
Is the point of ArcTan2 that it allows us to decide the coordinates of input ratio ourselves? Meaning we can have…
ArcTan2(x/y) , ArcTan2(x/z)
ArcTan2(y/x) , ArcTan2(y/z)
ArcTan2(z/x) , ArcTan2(z/y)
…if we want, unlike with ArcTan1(y/x), we could only have one ratio which is y/x, which can be considered a disadvantage?
From what I know:
-Invertible Tan1 has its Domain restricted to (−π/2,π/2) so that it can be invertible, and its inverse (i.e. ArcTan1) outputs Range (−π/2,π/2) only on First & Forth Quadrants.
-Now, with what we see here (the Blender screenshot), ArcTan2 outputs angles that are in all four quadrants. Which means, its inverse, which is Tan2 (which doesn’t exist), has Domain to be (−∞,+∞) (including the asymptotes x = n*(π/2)), and is not invertible, for ArcTan2 to be able to output such angles.
Here’s my assumption, please tell me what you think:
- ArcTan2 is not an inverse of any function (even though it has “arc” in its name), it’s a separate function. It’s not supposed to be Mathematically intuitive or theoretically correct, it’s just created to be a more versatile version of ArcTan1, it’s supposed to simply input arbitrary ratios (decided by Blender users) and output angles. Both of its Domain and Range are (−∞,+∞).
Could someone please write for me a complete function of ArcTan2 Mathematically?
My thoughts (3):
I don’t understand what’s with the abrupt change at π. I know the angles of a circle have to start and end somewhere but why at π? What is its Math like to create such result?
Thank you so much!