master
ブランチ master
VulkanExample / dep / include / glm / ext / scalar_constants.hpp
1.1 KB、40行 生 Blame 履歴
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
20namespace 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 /// Return the value of cos(1 / 2) for floating point types.
34 template<typename genType>
35 GLM_FUNC_DECL GLM_CONSTEXPR genType cos_one_over_two();
36
37 /// @}
38} //namespace glm
39
40#include "scalar_constants.inl"