pub fn atan2(y: anytype, x: anytype) @TypeOf(x, y)
Returns the arc-tangent of y/x.
Special Cases:
y
x
33 34 35 36 37 38 39 40
pub fn atan2(y: anytype, x: anytype) @TypeOf(x, y) { const T = @TypeOf(x, y); return switch (T) { f32 => atan2_32(y, x), f64 => atan2_64(y, x), else => @compileError("atan2 not implemented for " ++ @typeName(T)), }; }
Returns the arc-tangent of y/x.
Special Cases: