From e2992d276fcf147406741d4107400e94a880e57f Mon Sep 17 00:00:00 2001 From: fincs Date: Sat, 28 May 2022 21:14:55 +0200 Subject: [PATCH] Fix #58 --- include/c3d/maths.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/c3d/maths.h b/include/c3d/maths.h index f1b4f86..026ec4e 100644 --- a/include/c3d/maths.h +++ b/include/c3d/maths.h @@ -13,7 +13,12 @@ * The one true circumference-to-radius ratio. * See http://tauday.com/tau-manifesto */ -#define M_TAU (2*M_PI) +#define M_TAU (6.28318530717958647692528676655900576) + +// Define the legacy circle constant as well +#ifndef M_PI +#define M_PI (M_TAU/2) +#endif /** * @brief Convert an angle from revolutions to radians