Ver Fonte

Fix `atan2` by swapping the arguments internally

gingerBill há 2 anos atrás
pai
commit
e5c243ee93
1 ficheiros alterados com 1 adições e 1 exclusões
  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)
 }