Browse Source

Fix `atan2` by swapping the arguments internally

gingerBill 2 years ago
parent
commit
e5c243ee93
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/math/math.odin

+ 1 - 1
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)
 }