pub fn atan2(y: f64, x: f64) -> f64
The Math.atan2() function returns the arctangent of the quotient of its arguments.
Math.atan2()
MDN documentation