You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > ArcTan2 Method > Matrix.ArcTan2 Method (TMtxVec, TMtxVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.ArcTan2 Method (TMtxVec, TMtxVec)

Inverse tangens of Y/X.

Pascal
function ArcTan2(Y: TMtxVec; X: TMtxVec): TMtxVec; overload;

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 result will fall in the range from -PI to PI radians.

ArcTan is calculated as ArcTan2(1, X).

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!