Math387.ArcTan2 / ArcTan2f Method

Overload List

#SignatureDescription
1function ArcTan2(const Y: Double; const X: Double): Double;Inverse tangens of Y/X.
2function ArcTan2f(const Y: Single; const X: Single): Single;

Overload 1: function ArcTan2(const Y: Double; const X: Double): Double;

Inverse tangens of Y/X.

#NameTypeDescription
1YDouble
2XDouble

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

Remarks:

The return value will fall in the closed interval [-PI,PI] radians.

Note
Math387.ArcTan is calculated as ArcTan2(1, X).

See Also: Math387.ArcTan, Math387.Tan

Overload 2: function ArcTan2f(const Y: Single; const X: Single): Single;

#NameTypeDescription
1YSingle
2XSingle

Returns: Single