Re: divided by zero
0
The problem is not that the first argument is zero - atan2 can handle that and returns + or - pi/2. The problem only occurs if BOTH arguments are zero because then the angle is undefined. So you have to ask for both arguments being zero. Furthermo... View more