GLM  0.9.5
normal.hpp
Go to the documentation of this file.
1 
39 #ifndef GLM_GTX_normal
40 #define GLM_GTX_normal
41 
42 // Dependency:
43 #include "../glm.hpp"
44 
45 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
46 # pragma message("GLM: GLM_GTX_normal extension included")
47 #endif
48 
49 namespace glm
50 {
53 
56  template <typename T, precision P>
57  detail::tvec3<T, P> triangleNormal(
58  detail::tvec3<T, P> const & p1,
59  detail::tvec3<T, P> const & p2,
60  detail::tvec3<T, P> const & p3);
61 
63 }//namespace glm
64 
65 #include "normal.inl"
66 
67 #endif//GLM_GTX_normal
detail::tvec3< T, P > triangleNormal(detail::tvec3< T, P > const &p1, detail::tvec3< T, P > const &p2, detail::tvec3< T, P > const &p3)
Computes triangle normal from triangle points.