From e5c243ee930828c7277bdc5ef9d18432f3bc3849 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 29 Nov 2022 09:19:45 +0000 Subject: [PATCH] Fix `atan2` by swapping the arguments internally --- core/math/math.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/math/math.odin b/core/math/math.odin index e4e43c86a..027a9c8cd 100644 --- a/core/math/math.odin +++ b/core/math/math.odin @@ -1386,7 +1386,7 @@ atan2 :: proc{ } atan :: proc "contextless" (x: $T) -> T where intrinsics.type_is_float(T) { - return atan2(1, x) + return atan2(x, 1) }