0.9.8 API documenation
normal.hpp
Go to the documentation of this file.
1 
14 #pragma once
15 
16 // Dependency:
17 #include "../glm.hpp"
18 
19 #ifndef GLM_ENABLE_EXPERIMENTAL
20 # error "GLM: GLM_GTX_normal is an experimetal extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
21 #endif
22 
23 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
24 # pragma message("GLM: GLM_GTX_normal extension included")
25 #endif
26 
27 namespace glm
28 {
31 
34  template <typename T, precision P>
35  GLM_FUNC_DECL tvec3<T, P> triangleNormal(
36  tvec3<T, P> const & p1,
37  tvec3<T, P> const & p2,
38  tvec3<T, P> const & p3);
39 
41 }//namespace glm
42 
43 #include "normal.inl"
Definition: _noise.hpp:11
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.