mirror of
https://github.com/recp/cglm.git
synced 2025-10-03 16:51:35 +00:00
Merge pull request #452 from RolandMarchand/add-tau-constants
Added Tau constant definitions to types.h
This commit is contained in:
@@ -106,23 +106,35 @@ typedef vec3 mat4x3[4]; /* [col (4), row (3)] */
|
||||
#define GLM_PI_4 0.785398163397448309615660845819875721 /* pi/4 */
|
||||
#define GLM_1_PI 0.318309886183790671537767526745028724 /* 1/pi */
|
||||
#define GLM_2_PI 0.636619772367581343075535053490057448 /* 2/pi */
|
||||
#define GLM_TAU 6.283185307179586476925286766559005768 /* tau */
|
||||
#define GLM_TAU_2 GLM_PI /* tau/2 */
|
||||
#define GLM_TAU_4 GLM_PI_2 /* tau/4 */
|
||||
#define GLM_1_TAU 0.159154943091895335768883763372514362 /* 1/tau */
|
||||
#define GLM_2_TAU 0.318309886183790671537767526745028724 /* 2/tau */
|
||||
#define GLM_2_SQRTPI 1.12837916709551257389615890312154517 /* 2/sqrt(pi) */
|
||||
#define GLM_SQRTTAU 2.506628274631000502415765284811045253 /* sqrt(tau) */
|
||||
#define GLM_SQRT2 1.41421356237309504880168872420969808 /* sqrt(2) */
|
||||
#define GLM_SQRT1_2 0.707106781186547524400844362104849039 /* 1/sqrt(2) */
|
||||
|
||||
#define GLM_Ef ((float)GLM_E)
|
||||
#define GLM_LOG2Ef ((float)GLM_LOG2E)
|
||||
#define GLM_LOG10Ef ((float)GLM_LOG10E)
|
||||
#define GLM_LN2f ((float)GLM_LN2)
|
||||
#define GLM_LN10f ((float)GLM_LN10)
|
||||
#define GLM_PIf ((float)GLM_PI)
|
||||
#define GLM_PI_2f ((float)GLM_PI_2)
|
||||
#define GLM_PI_4f ((float)GLM_PI_4)
|
||||
#define GLM_1_PIf ((float)GLM_1_PI)
|
||||
#define GLM_2_PIf ((float)GLM_2_PI)
|
||||
#define GLM_2_SQRTPIf ((float)GLM_2_SQRTPI)
|
||||
#define GLM_SQRT2f ((float)GLM_SQRT2)
|
||||
#define GLM_SQRT1_2f ((float)GLM_SQRT1_2)
|
||||
#define GLM_Ef ((float)GLM_E)
|
||||
#define GLM_LOG2Ef ((float)GLM_LOG2E)
|
||||
#define GLM_LOG10Ef ((float)GLM_LOG10E)
|
||||
#define GLM_LN2f ((float)GLM_LN2)
|
||||
#define GLM_LN10f ((float)GLM_LN10)
|
||||
#define GLM_PIf ((float)GLM_PI)
|
||||
#define GLM_PI_2f ((float)GLM_PI_2)
|
||||
#define GLM_PI_4f ((float)GLM_PI_4)
|
||||
#define GLM_1_PIf ((float)GLM_1_PI)
|
||||
#define GLM_2_PIf ((float)GLM_2_PI)
|
||||
#define GLM_TAUf ((float)GLM_TAU)
|
||||
#define GLM_TAU_2f ((float)GLM_TAU_2)
|
||||
#define GLM_TAU_4f ((float)GLM_TAU_4)
|
||||
#define GLM_1_TAUf ((float)GLM_1_TAU)
|
||||
#define GLM_2_TAUf ((float)GLM_2_TAU)
|
||||
#define GLM_2_SQRTPIf ((float)GLM_2_SQRTPI)
|
||||
#define GLM_2_SQRTTAUf ((float)GLM_SQRTTAU)
|
||||
#define GLM_SQRT2f ((float)GLM_SQRT2)
|
||||
#define GLM_SQRT1_2f ((float)GLM_SQRT1_2)
|
||||
|
||||
/* DEPRECATED! use GLM_PI and friends */
|
||||
#define CGLM_PI GLM_PIf
|
||||
|
Reference in New Issue
Block a user