System.BuiltInArcTan2

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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 Object Pascal compilers support this function:

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

See Also