0.9.9 API documenation
Functions

Compute the normal of a triangle. More...

Functions

template<typename T , qualifier P>
GLM_FUNC_DECL vec< 3, T, P > triangleNormal (vec< 3, T, P > const &p1, vec< 3, T, P > const &p2, vec< 3, T, P > const &p3)
 Computes triangle normal from triangle points. More...
 

Detailed Description

Compute the normal of a triangle.

<glm/gtx/normal.hpp> need to be included to use these functionalities.

Function Documentation

GLM_FUNC_DECL vec<3, T, P> glm::triangleNormal ( vec< 3, T, P > const &  p1,
vec< 3, T, P > const &  p2,
vec< 3, T, P > const &  p3 
)

Computes triangle normal from triangle points.

From GLM_GTX_normal extension.