Dew MtxVec NET
ArcTan2 Routine
Summary
Inverse tangens of Y/X.

Unit
Math387

Declaration
Function ArcTan2(y, x: TSample): TSample;
Result
the inverse tangens of Y/X, and returns an angle in the correct quadrant. The values of X and Y must be between -2p and 2p. If they are not, call the FixAngle function. In addition, the value of X can't be 0. The return value will fall in the range from -p to p radians. Note that ArcTan is calculated as ArcTan2(1, X).
 See Also 
ArcTan 
Tan 

Copyright 2008 Dew Research
http://www.dewresearch.com