This commit is contained in:
fincs 2022-05-28 21:14:55 +02:00
parent b6d0b7d876
commit e2992d276f
No known key found for this signature in database
GPG Key ID: 62C7609ADA219C60

View File

@ -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