summaryrefslogtreecommitdiff
path: root/include/celeritas.h
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 /include/celeritas.h
parentfa934b45f4d17495952303c2981dc1e21cb978f1 (diff)
add maths constants
Diffstat (limited to 'include/celeritas.h')
-rw-r--r--include/celeritas.h5
1 files changed, 5 insertions, 0 deletions
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;