Skip to main content

builtin_atan2

Function builtin_atan2 

Source
fn builtin_atan2(
    args: &[RValue],
    _: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Two-argument inverse tangent.

Computes atan(y/x) but uses the signs of both arguments to determine the correct quadrant. Returns angles in [-pi, pi].

@param y numeric vector (y-coordinates) @param x numeric vector (x-coordinates) @return numeric vector of angles in radians