master
ブランチ master
VulkanExample / dep / include / glm / gtx / projection.hpp
1.1 KB、41行 生 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#elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
21# pragma message("GLM: GLM_GTX_projection extension included")
22#endif
23
24namespace glm
25{
26 /// @addtogroup gtx_projection
27 /// @{
28
29 /// Projects x on Normal.
30 ///
31 /// @param[in] x A vector to project
32 /// @param[in] Normal A normal that doesn't need to be of unit length.
33 ///
34 /// @see gtx_projection
35 template<typename genType>
36 GLM_FUNC_DECL genType proj(genType const& x, genType const& Normal);
37
38 /// @}
39}//namespace glm
40
41#include "projection.inl"