No overflow error in ArcTan2
Original Reporter info from Mantis: sberinde
-
Reporter name: Stefan Berinde
Original Reporter info from Mantis: sberinde
- Reporter name: Stefan Berinde
Description:
Documentation states that if x=0 an overflow error will occur in ArcTan2(y,x) routine (math unit).
But this is not true. ArcTan2 returns correct values in the following cases
ArcTan2(1,0) = Pi/2
ArcTan2(-1,0) = -Pi/2
ArcTan2(0,0) = 0
It should be stated that ArcTan2 does not return any errors, at least on i386 platforms.
Mantis conversion info:
- Mantis ID: 24595
- OS: Win32 for i386
- OS Build: XP
- Platform: Win
- Version: 2.6.2
- Fixed in version: 3.0.0
- Fixed in revision: 1068 (#2a422a4b)
- Target version: 2.6.4