soggy.Documentation Back to Soggy ↗

math.atan2

Returns the arc tangent of y/x (in radians), but uses the signs of both parameters to find the quadrant of the result. It also handles correctly the case of x being zero.

math.atan2(y: number, x: number): number

Arguments

NameDescriptionType
yN/Anumber
xN/Anumber

Returns number

Type to search guides, functions and events.