0.9.6
normal.hpp
Go to the documentation of this file.
1 
43 #pragma once
44 
45 // Dependency:
46 #include "../glm.hpp"
47 
48 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
49 # pragma message("GLM: GLM_GTX_normal extension included")
50 #endif
51 
52 namespace glm
53 {
56 
59  template <typename T, precision P>
60  GLM_FUNC_DECL tvec3<T, P> triangleNormal(
61  tvec3<T, P> const & p1,
62  tvec3<T, P> const & p2,
63  tvec3<T, P> const & p3);
64 
66 }//namespace glm
67 
68 #include "normal.inl"
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.
Definition: _noise.hpp:39