summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-05 12:53:07 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-05 12:53:07 +1000
commit4248ca9d432f33e18baf4ce193d1a9b7f7d1e9a9 (patch)
tree1e1dca8e82aa188530ee33fbf59ad84d1f1f8b4b
parentfa934b45f4d17495952303c2981dc1e21cb978f1 (diff)
add maths constants
-rw-r--r--archive/src/maths/maths_types.h5
-rw-r--r--include/celeritas.h5
2 files changed, 5 insertions, 5 deletions
diff --git a/archive/src/maths/maths_types.h b/archive/src/maths/maths_types.h
index 66d260d..e1dff9c 100644
--- a/archive/src/maths/maths_types.h
+++ b/archive/src/maths/maths_types.h
@@ -9,11 +9,6 @@
#include "defines.h"
-// --- Constants
-#define PI 3.14159265358979323846
-#define HALF_PI 1.57079632679489661923
-#define TAU (2.0 * PI)
-
// --- Types
/** @brief 2D Vector */
diff --git a/include/celeritas.h b/include/celeritas.h
index edd7a4b..b8b0a93 100644
--- a/include/celeritas.h
+++ b/include/celeritas.h
@@ -99,6 +99,11 @@ bool should_exit();
// --- Maths
+// Constants
+#define PI 3.14159265358979323846
+#define HALF_PI 1.57079632679489661923
+#define TAU (2.0 * PI)
+
/** @brief 3D Vector */
typedef struct Vec3 {
f32 x, y, z;