- Joined
- Jan 22, 2008
- Messages
- 53,397
- Helped
- 14,797
- Reputation
- 29,883
- Reaction score
- 14,349
- Trophy points
- 1,393
- Location
- Bochum, Germany
- Activity points
- 302,263
Right. Actually it's atan(y/x), respectively atan2(x,y). A reasonable implementation uses a half quadrant LUT (0 .. 45 degree) and applies the identityIt is not easy to use a LUT for tan(x).
atan(y/x) = sgn*pi/2 - atan(x/y)