Skip to main content

atan2

Function atan2 

Source
pub fn atan2<F: Float>(y: F, x: F) -> F
Expand description

The angle of the point (x, y) from the positive x axis, from -π to π, with y first as in C’s atan2. Zeros and infinities give C99’s angles: atan2(±0, -0) is ±π, and atan2(±∞, ±∞) is an odd multiple of ±π/4.