GLM: GLM_GTX_normal

GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

Functions
GLM_GTX_normal
GTX Extensions (Experimental)

## Functions
template<typename T , precision P>
detail::tvec3< T, P > | triangleNormal (detail::tvec3< T, P > const &p1, detail::tvec3< T, P > const &p2, detail::tvec3< T, P > const &p3)

## Detailed Description

Compute the normal of a triangle.

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

## Function Documentation

detail::tvec3<T, P> glm::triangleNormal | ( | detail::tvec3< T, P > const & | p1,
|  | detail::tvec3< T, P > const & | p2,
|  | detail::tvec3< T, P > const & | p3
| ) |  |

Computes triangle normal from triangle points.

From GLM_GTX_normal extension.