method

atan2

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: CMath
atan2(y,x) public

returns the arc tangent of y divided by x using the signs of y and x to determine the quadrant

CMath.atan2(1 + 1i, 0) #=> (1.5707963267948966+0.0i)
Show source
Register or log in to add new notes.