| author | |
| committer | |
| log | 404c87b06afbeebfea6c839665918c7bd1328d74 |
| tree | fa43af83b38033c192a69e185970a1f7cf0f41e8 |
| parent | 5864d92b4049e6d60a21a3f22220464808dd0518 |
| signature | Commit is signed but in an unrecognized format. |
1 files changed, 3 insertions(+), 3 deletions(-)
std/math/atan2.zig+3-3| ... | ... | @@ -22,10 +22,10 @@ const std = @import("../index.zig"); |
| 22 | 22 | const math = std.math; |
| 23 | 23 | const assert = std.debug.assert; |
| 24 | 24 | |
| 25 | pub fn atan2(comptime T: type, x: T, y: T) T { | |
| 25 | pub fn atan2(comptime T: type, y: T, x: T) T { | |
| 26 | 26 | return switch (T) { |
| 27 | f32 => atan2_32(x, y), | |
| 28 | f64 => atan2_64(x, y), | |
| 27 | f32 => atan2_32(y, x), | |
| 28 | f64 => atan2_64(y, x), | |
| 29 | 29 | else => @compileError("atan2 not implemented for " ++ @typeName(T)), |
| 30 | 30 | }; |
| 31 | 31 | } |