You are here: Symbol Reference > Math387 Namespace > Functions > Math387.ArcTan2 Function
MtxVec VCL
ContentsIndex
PreviousUpNext
Math387.ArcTan2 Function

Inverse tangens of Y/X.

Pascal
function ArcTan2(const Y: double; const X: double): double; overload;

Returns the inverse tangens of Y/X, and returns an angle in the correct quadrant.

The return value will fall in the closed interval [-PI,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!