Function glm::builtin::atan2
[−]
[src]
pub fn atan2<F: BaseFloat, T: GenFloat<F>>(y: T, x: T) -> T
Returns an angle whose tangent is y / x
.
The signs of x
and y
are used to determine what quadrant the angle is
in.
The range of values returned by this function is [−π, π]
.
Results are undefined if x
and y
are both 0
.
Note
atan2
is not a GLSL function name.