There is another post here about Atan but I dont see any relevant answers:
C# – Why Math.Atan(Math.Tan(x)) != x?
Isn’t Math.Atan the same as tan-1? On my calculator I do:
tan-1(1) and i get 45.
tan(45) = 1
In C#:
Math.Atan(1) = 0.78539816339744828 //
nowhere near the 45.Math.Tan(45) = 1.6197751905438615 //1
dp over the < Piover2.
Whats happening here?
C# is treating the angles as radians; your calculator is using degrees.