ATAN within [0,2pi)

ATAN within [0,2pi)

I want to take the arctangent of y/x, with the output in the range [0,2pi). Is there a more elegant way than using

angle = AMOD(ATAN2(y,x)+TWOPI,TWOPI)

where I have defined TWOPI as a parameter?

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.


Leave a Comment

Please sign in to add a comment. Not a member? Join today