System.BuiltInArcTan2

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function BuiltInArcTan2(Y, X: Real): Extended; overload;
function BuiltInArcTan2(Y, X: Real): Double; overload;
function BuiltInArcTan2(Y, X: Real): Single; overload;

Properties

Type Visibility Source Unit Parent
function public System.pas System System

Description

Calculates the arctangent angle and quadrant of a given number.

BuiltInArcTan2 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.

Compiler Support

The following table shows which Delphi compilers support this function:

DCC32 DCC64 DCCOSX DCCAARM DCCIOSARM DCCIOSARM64 DCCIOS32
YesC++11Feature.png
YesC++11Feature.png

See Also