1 #include <glm/ext/scalar_constants.hpp>
2 
3 template <typename valType>
test_epsilon()4 static int test_epsilon()
5 {
6 	int Error = 0;
7 
8 	valType const Test = glm::epsilon<valType>();
9 	Error += Test > static_cast<valType>(0) ? 0 : 1;
10 
11 	return Error;
12 }
13 
14 template <typename valType>
test_pi()15 static int test_pi()
16 {
17 	int Error = 0;
18 
19 	valType const Test = glm::pi<valType>();
20 	Error += Test > static_cast<valType>(3.14) ? 0 : 1;
21 	Error += Test < static_cast<valType>(3.15) ? 0 : 1;
22 
23 	return Error;
24 }
25 
main()26 int main()
27 {
28 	int Error = 0;
29 
30 	Error += test_epsilon<float>();
31 	Error += test_epsilon<double>();
32 	Error += test_pi<float>();
33 	Error += test_pi<double>();
34 
35 	return Error;
36 }
37