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 /// @brief Projection of a vector to other one 10 /// 11 /// <glm/gtx/projection.hpp> need to be included to use these functionalities. 12 13 #pragma once 14 15 // Dependency: 16 #include "../geometric.hpp" 17 18 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED) 19 # pragma message("GLM: GLM_GTX_projection extension included") 20 #endif 21 22 namespace glm 23 { 24 /// @addtogroup gtx_projection 25 /// @{ 26 27 /// Projects x on Normal. 28 /// 29 /// @see gtx_projection 30 template <typename vecType> 31 GLM_FUNC_DECL vecType proj(vecType const & x, vecType const & Normal); 32 33 /// @} 34 }//namespace glm 35 36 #include "projection.inl" 37