Monado OpenXR Runtime
m_mathinclude.h File Reference

Wrapper header for <math.h> to ensure pi-related math constants are defined. More...

#include <math.h>
Include dependency graph for m_mathinclude.h:

Go to the source code of this file.

Macros

#define _USE_MATH_DEFINES
 
#define M_PI   (3.14159265358979323846)
 
#define M_PIl   (3.14159265358979323846264338327950288)
 
#define M_1_PI   (1. / M_PI)
 

Detailed Description

Wrapper header for <math.h> to ensure pi-related math constants are defined.

Use this instead of directly including <math.H> in headers and when you need M_PI and its friends.

Author
Rylie Pavlik rylie.nosp@m..pav.nosp@m.lik@c.nosp@m.olla.nosp@m.bora..nosp@m.com