mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
fix incorrect parameter names for std.math.atan2
This commit is contained in:
parent
5864d92b40
commit
404c87b06a
@ -22,10 +22,10 @@ const std = @import("../index.zig");
|
||||
const math = std.math;
|
||||
const assert = std.debug.assert;
|
||||
|
||||
pub fn atan2(comptime T: type, x: T, y: T) T {
|
||||
pub fn atan2(comptime T: type, y: T, x: T) T {
|
||||
return switch (T) {
|
||||
f32 => atan2_32(x, y),
|
||||
f64 => atan2_64(x, y),
|
||||
f32 => atan2_32(y, x),
|
||||
f64 => atan2_64(y, x),
|
||||
else => @compileError("atan2 not implemented for " ++ @typeName(T)),
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user