| 1.0.2 API documentation

scalar_constants.hpp
Go to the documentation of this file.
1
11 #pragma once
12
13 // Dependencies
14 #include "../detail/setup.hpp"
15
16 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
17 # pragma message("GLM: GLM_EXT_scalar_constants extension included")
18 #endif
19
20 namespace glm
21 {
24
26 template<typename genType>
27 GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon();
28
30 template<typename genType>
31 GLM_FUNC_DECL GLM_CONSTEXPR genType pi();
32
34 template<typename genType>
35 GLM_FUNC_DECL GLM_CONSTEXPR genType cos_one_over_two();
36
38 } //namespace glm
39
40 #include "scalar_constants.inl"
glm::cos_one_over_two
GLM_FUNC_DECL GLM_CONSTEXPR genType cos_one_over_two()
Return the value of cos(1 / 2) for floating point types.
glm::pi
GLM_FUNC_DECL GLM_CONSTEXPR genType pi()
Return the pi constant for floating point types.
glm::epsilon
GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
Return the epsilon constant for floating point types.