1.0.0 API documentation
Loading...
Searching...
No Matches
perpendicular.hpp
Go to the documentation of this file.
1
13
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 experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
22#elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
23# pragma message("GLM: GLM_GTX_perpendicular extension included")
24#endif
25
26namespace glm
27{
30
33 template<typename genType>
34 GLM_FUNC_DECL genType perp(genType const& x, genType const& Normal);
35
37}//namespace glm
38
39#include "perpendicular.inl"
GLM_FUNC_DECL genType perp(genType const &x, genType const &Normal)
Projects x a perpendicular axis of Normal.