1.0.0 API documentation
Loading...
Searching...
No Matches
projection.hpp
Go to the documentation of this file.
1
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{
28
35 template<typename genType>
36 GLM_FUNC_DECL genType proj(genType const& x, genType const& Normal);
37
39}//namespace glm
40
41#include "projection.inl"
GLM_FUNC_DECL genType proj(genType const &x, genType const &Normal)
Projects x on Normal.