Expand description
Implementations of Atan2 and
Atan2Assign, traits for computing the
angle of a point given by two Float coordinates.
Functionsยง
- primitive_
float_ atan2 - Computes $\operatorname{atan2}(y,x)$, the angle of the point $(x,y)$ measured from the positive $x$-axis, for primitive floats.
- primitive_
float_ atan2_ pi - Computes $\operatorname{atan2}(y,x)/\pi$, the angle of the point $(x,y)$ measured from the positive $x$-axis in half-turns, for primitive floats.
- primitive_
float_ atan2_ pi_ rational - Computes $\operatorname{atan2}(y,x)/\pi$, the angle of the point $(x,y)$ measured from the
positive $x$-axis in half-turns, for
Rationals, returning the result as a primitive float. - primitive_
float_ atan2_ rational - Computes $\operatorname{atan2}(y,x)$, the angle of the point $(x,y)$ measured from the positive
$x$-axis, for
Rationals, returning the result as a primitive float. - primitive_
float_ atan2_ with_ period - Computes $\operatorname{atan2}(y,x)u/(2\pi)$, the angle of the point $(x,y)$ measured from the
positive $x$-axis in $u$ths of a turn (so that
u = 360gives degrees), for primitive floats. - primitive_
float_ atan2_ with_ period_ rational - Computes $\operatorname{atan2}(y,x)u/(2\pi)$, the angle of the point $(x,y)$ measured from the
positive $x$-axis in $u$ths of a turn (so that
u = 360gives degrees), forRationals, returning the result as a primitive float.