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 --- include/celeritas.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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