mf
Media Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
math_constants.h
Go to the documentation of this file.
1 #ifndef MF_MATH_CONSTANTS_H_
2 #define MF_MATH_CONSTANTS_H_
3 
4 #include "../common.h"
5 
6 namespace mf {
7 
8 constexpr real pi = 3.14159265358979323846264338327950288;
9 constexpr real half_pi = pi / 2.0;
10 constexpr real quarter_pi = pi / 4.0;
11 constexpr real two_pi = pi * 2.0;
12 constexpr real four_pi = pi * 4.0;
13 
14 constexpr real radiant_per_degree = pi / 180.0;
15 constexpr real degree_per_radiant = 180.0 / pi;
16 
17 }
18 
19 #endif
constexpr real degree_per_radiant
Definition: math_constants.h:15
float real
Real number type.
Definition: common.h:48
constexpr real radiant_per_degree
Definition: math_constants.h:14
constexpr real four_pi
Definition: math_constants.h:12
constexpr real two_pi
Definition: math_constants.h:11
constexpr real quarter_pi
Definition: math_constants.h:10
constexpr real pi
Definition: math_constants.h:8
constexpr real half_pi
Definition: math_constants.h:9