Difference between revisions of "ArcTan2"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function ArcTan2(Y, X: Extended): Extended; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== This function ...") |
(No difference)
|
Latest revision as of 19:50, 30 August 2011
Definition
function ArcTan2(Y, X: Extended): Extended;
Availability
SCAR Divi 3.00 > Current
Description
This function calculates the inverse tangent angle and quadrant of a value. ArcTan2(Y, X) produces the same result as ArcTan(Y/X). The value of X can't be 0 and the function returns an angle in the range from -Pi to Pi radians.
Example
begin WriteLn(ArcTan2(1, 1)); end.
Output:
0,785398163397448