![]() |
0.9.9 API documentation
|
Include <glm/gtx/normal.hpp> to use the features of this extension. More...
Functions | |
template<typename T , qualifier Q> | |
GLM_FUNC_DECL vec< 3, T, Q > | triangleNormal (vec< 3, T, Q > const &p1, vec< 3, T, Q > const &p2, vec< 3, T, Q > const &p3) |
Computes triangle normal from triangle points. | |
Include <glm/gtx/normal.hpp> to use the features of this extension.
Compute the normal of a triangle.
GLM_FUNC_DECL vec< 3, T, Q > triangleNormal | ( | vec< 3, T, Q > const & | p1, |
vec< 3, T, Q > const & | p2, | ||
vec< 3, T, Q > const & | p3 ) |
Computes triangle normal from triangle points.