From 0d97d58edc8411db0df3f4ac5d0bd7cff84703e7 Mon Sep 17 00:00:00 2001 From: Caleb Butler Date: Thu, 5 Oct 2023 09:08:48 -0400 Subject: [PATCH] Fix arguments of Atan2 to match ExtMath.h --- src/ExtMath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ExtMath.c b/src/ExtMath.c index a70a97a58..a44587c45 100644 --- a/src/ExtMath.c +++ b/src/ExtMath.c @@ -394,7 +394,7 @@ double Atan(double x) { * Associated math function: atan2(y, x) * Allowed input range: anything */ -double Math_Atan2(double y, double x) { +double Math_Atan2(double x, double y) { if (x > 0) return Atan(y / x); if (x < 0) {