Use even more precise definitions for pi constants

See https://github.com/recp/cglm/pull/61#issuecomment-422955122
This commit is contained in:
Carsten Hartenfels
2018-09-21 07:26:55 +02:00
parent b00f2b9ccc
commit 59ee8c1fd2

View File

@@ -48,8 +48,8 @@ typedef CGLM_ALIGN_IF(16) vec4 mat4[4];
typedef vec4 versor;
#define CGLM_PI ((float)3.14159265358979323846)
#define CGLM_PI_2 ((float)1.57079632679489661923)
#define CGLM_PI_4 ((float)0.78539816339744830962)
#define CGLM_PI ((float)3.14159265358979323846264338327950288)
#define CGLM_PI_2 ((float)1.57079632679489661923132169163975144)
#define CGLM_PI_4 ((float)0.785398163397448309615660845819875721)
#endif /* cglm_types_h */