TSparseMtx::ArcTan2 Method

Overload List

#SignatureDescription
1TMtxVec *ArcTan2(TMtxVec *Y, TMtxVec *X);Inverse tangens of Y/X.
2TMtxVec *ArcTan2(TMtxVec *Y, TMtxVec *X, int YIndex, int XIndex, int Index, int Len);Calculate the inverse tangens of Y/X.

Overload 1: TMtxVec *ArcTan2(TMtxVec *Y, TMtxVec *X);

Inverse tangens of Y/X.

#NameTypeDescription
1YTMtxVec *
2XTMtxVec *
Remarks:

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 TSparseMtx::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 TSparseMtx::Complex properties do not match.

Note that TSparseMtx::ArcTan is calculated as ArcTan2(1, X).

See Also: TSparseMtx::ArcTan
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 2: TMtxVec *ArcTan2(TMtxVec *Y, TMtxVec *X, int YIndex, int XIndex, int Index, int Len);

Calculate the inverse tangens of Y/X.

#NameTypeDescription
1YTMtxVec *
2XTMtxVec *
3YIndexint
4XIndexint
5Indexint
6Lenint
Remarks:

Calculation uses Y elements [YIndex]..[YIndex+Len-1], X elements [XIndex]..[XIndex+Len-1] and stores the results in calling object elements [Index]..[Index+Len-1]. An exception is raised if array borders are overrun.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler