Browse Source

Fix `math.atan`

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

+ 2 - 2
core/math/math.odin

@@ -742,10 +742,10 @@ atan2_f64 :: proc(y, x: f64) -> f64 {
 atan2 :: proc{atan2_f32, atan2_f64};
 
 atan_f32 :: proc(x: f32) -> f32 {
-	return atan2_f32(1, x);
+	return atan2_f32(x, 1);
 }
 atan_f64 :: proc(x: f64) -> f64 {
-	return atan2_f64(1, x);
+	return atan2_f64(x, 1);
 }
 atan :: proc{atan_f32, atan_f64};