Sign in to follow this  

Computing arctangent

Recommended Posts

I need to find the arctangent of a dx and dy, so that the angle returned is in the appropriate quadrant. So far I have been using a lookup table of the tangent of the first 180 degrees and doing a binary search through that, and using symmetry if dy is negative. Is this the fastest way to do it?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this