From 4248ca9d432f33e18baf4ce193d1a9b7f7d1e9a9 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 5 Oct 2024 12:53:07 +1000 Subject: add maths constants --- archive/src/maths/maths_types.h | 5 ----- include/celeritas.h | 5 +++++ 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; -- cgit v1.2.3-70-g09d2