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

Class
TMtxVec

Declaration
Function ArcTan2(Y, X: TMtxVec): TMtxVec;

Description

Calculates the inverse tangens of Y/X, and returns an angle in the correct quadrant. The results are stored in calling object elements. Size and Complex properties of calling object are adjusted automatically to match those of X and Y objects. An exception is raised if X and Y size and Complex properties do not match.

The values of X and Y must be between -2p and 2p. If they are not, you should adjust the angle by calling Math387.FixAngle routine for these elements. In addition, the value of X can't be 0. The result will fall in the range from -p to p radians. Note that ArcTan is calculated as ArcTan2(1, X).

 See Also 
ArcTan 

Declaration
Function ArcTan2(Y, X: TMtxVec; YIndex, XIndex, Index: integer; Len: integer): TMtxVec;

Description
Calculate the inverse tangens of Y/X by using Y elements [YIndex]..[YIndex+Len-1], X elements [XIndex]..[XIndex+Len-1] and store the results in calling object elements [Index]..[Index+Len-1]. An exception is raised if array borders are overrun.

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