| 1 | /// @ref ext_scalar_constants |
| 2 | /// @file glm/ext/scalar_constants.hpp |
| 3 | /// |
| 4 | /// @defgroup ext_scalar_constants GLM_EXT_scalar_constants |
| 5 | /// @ingroup ext |
| 6 | /// |
| 7 | /// Provides a list of constants and precomputed useful values. |
| 8 | /// |
| 9 | /// Include <glm/ext/scalar_constants.hpp> to use the features of this extension. |
| 10 | |
| 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 | { |
| 22 | /// @addtogroup ext_scalar_constants |
| 23 | /// @{ |
| 24 | |
| 25 | /// Return the epsilon constant for floating point types. |
| 26 | template<typename genType> |
| 27 | GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon(); |
| 28 | |
| 29 | /// Return the pi constant for floating point types. |
| 30 | template<typename genType> |
| 31 | GLM_FUNC_DECL GLM_CONSTEXPR genType pi(); |
| 32 | |
| 33 | /// @} |
| 34 | } //namespace glm |
| 35 | |
| 36 | #include "scalar_constants.inl" |