0.9.6
normal.hpp
Go to the documentation of this file.
1 
39 #pragma once
40 
41 // Dependency:
42 #include "../glm.hpp"
43 
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_normal extension included")
46 #endif
47 
48 namespace glm
49 {
52 
55  template <typename T, precision P>
56  GLM_FUNC_DECL tvec3<T, P> triangleNormal(
57  tvec3<T, P> const & p1,
58  tvec3<T, P> const & p2,
59  tvec3<T, P> const & p3);
60 
62 }//namespace glm
63 
64 #include "normal.inl"
Definition: _noise.hpp:31
GLM_FUNC_DECL tvec3< T, P > triangleNormal(tvec3< T, P > const &p1, tvec3< T, P > const &p2, tvec3< T, P > const &p3)
Computes triangle normal from triangle points.