System.Math.ArcTan2
Delphi
function ArcTan2(const Y, X: Extended): Extended;
function ArcTan2(const Y, X: Double): Double;
function ArcTan2(const Y, X: Single): Single;
C++
extern DELPHI_PACKAGE System::Extended __fastcall ArcTan2(const System::Extended Y, const System::Extended X)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
Description
Calculates the arctangent angle and quadrant of a given number.
ArcTan2 calculates ArcTan(Y/X), and returns an angle in the correct quadrant. The values of X and Y must be between –264 and 264. The return value is from -Pi to Pi radians.