- Joined
- Jan 22, 2008
- Messages
- 52,283
- Helped
- 14,738
- Reputation
- 29,758
- Reaction score
- 14,073
- Trophy points
- 1,393
- Location
- Bochum, Germany
- Activity points
- 297,479
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)