Skip to content
ezeioDocs
  1. Reference
  2. Script reference
  3. Math and control

fatan2

Find the 2-argument arc-tangent

Description#

Float:fatan2( Float:x, Float:y )

Find the Euclidean plane for the point (x,y)

The return value is in radians.

Parameters#

x x-axis offset
y y-axis offset

Return value#

Returns the arc-tangent in radians for the point (x,y)

Example usage#

   new Float:x;
 
   x = fatan2( 1, 1 );    // 0.785398...

Last updated Nov 18, 2019