master
ブランチ master
ShaderPlayground / deps / glm / glm / gtx / projection.hpp
957 B、40行 生 Blame 履歴
1/// @ref gtx_projection
2/// @file glm/gtx/projection.hpp
3///
4/// @see core (dependence)
5///
6/// @defgroup gtx_projection GLM_GTX_projection
7/// @ingroup gtx
8///
9/// Include <glm/gtx/projection.hpp> to use the features of this extension.
10///
11/// Projection of a vector to other one
12
13#pragma once
14
15// Dependency:
16#include "../geometric.hpp"
17
18#ifndef GLM_ENABLE_EXPERIMENTAL
19# error "GLM: GLM_GTX_projection is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
20#endif
21
22#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
23# pragma message("GLM: GLM_GTX_projection extension included")
24#endif
25
26namespace glm
27{
28 /// @addtogroup gtx_projection
29 /// @{
30
31 /// Projects x on Normal.
32 ///
33 /// @see gtx_projection
34 template<typename genType>
35 GLM_FUNC_DECL genType proj(genType const& x, genType const& Normal);
36
37 /// @}
38}//namespace glm
39
40#include "projection.inl"