No Revisions Have Been Made To This Page
Can you suggest an edit for this page? Click Here
GML Code Example
|y||The y coordinate to calculate.|
|x||The x coordinate to calculate.|
This function returns the inverse tangent of an angle y/x, where
y = Opposite side of triangle and x = Adjacent side of triangle.
Unlike darctan(x) the function darctan2(y, x) is valid for all
angles and so may be used to convert a vector to an angle without
risking division by zero, and it also returns a result in the
NOTE: The value returned is in degrees, not radians.