GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

- File List

perpendicular.hpp
Go to the documentation of this file.
1
39 #ifndef GLM_GTX_perpendicular
40 #define GLM_GTX_perpendicular
41
42 // Dependency:
43 #include "../glm.hpp"
44 #include "../gtx/projection.hpp"
45
46 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
47 # pragma message("GLM: GLM_GTX_perpendicular extension included")
48 #endif
49
50 namespace glm
51 {
54
57 template <typename vecType>
58 vecType perp(
59 vecType const & x,
60 vecType const & Normal);
61
63 }//namespace glm
64
65 #include "perpendicular.inl"
66
67 #endif//GLM_GTX_perpendicular
glm::perp
vecType perp(vecType const &x, vecType const &Normal)
Projects x a perpendicular axis of Normal.