0.9.9 API documenation: perpendicular.hpp Source File

| 0.9.9 API documenation

- Main Page
- Modules
- Files

- File List

perpendicular.hpp
Go to the documentation of this file.
1
14 #pragma once
15
16 // Dependency:
17 #include "../glm.hpp"
18 #include "../gtx/projection.hpp"
19
20 #ifndef GLM_ENABLE_EXPERIMENTAL
21 # error "GLM: GLM_GTX_perpendicular is an experimetal extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
22 #endif
23
24 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
25 # pragma message("GLM: GLM_GTX_perpendicular extension included")
26 #endif
27
28 namespace glm
29 {
32
35 template <typename vecType>
36 GLM_FUNC_DECL vecType perp(
37 vecType const & x,
38 vecType const & Normal);
39
41 }//namespace glm
42
43 #include "perpendicular.inl"
glm::perp
GLM_FUNC_DECL vecType perp(vecType const &x, vecType const &Normal)
Projects x a perpendicular axis of Normal.
glm
Definition: _noise.hpp:11