Fix atan2 by swapping the arguments internally

This commit is contained in:
gingerBill
2022-11-29 09:19:45 +00:00
committed by GitHub
parent e9b6a8fc9a
commit e5c243ee93
+1 -1
View File
@@ -1386,7 +1386,7 @@ atan2 :: proc{
} }
atan :: proc "contextless" (x: $T) -> T where intrinsics.type_is_float(T) { atan :: proc "contextless" (x: $T) -> T where intrinsics.type_is_float(T) {
return atan2(1, x) return atan2(x, 1)
} }