Back to Mame

0.9.8: GLM_GTX_normal

3rdparty/glm/doc/api/a00212.html

latest937 B
Original Source

| | 0.9.8 |

Functions

GLM_GTX_normal GTX Extensions (Experimental)

|

Functions

| | template<typename T , precision P> | | GLM_FUNC_DECL tvec3< T, P > | triangleNormal (tvec3< T, P > const &p1, tvec3< T, P > const &p2, 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

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

Computes triangle normal from triangle points.

From GLM_GTX_normal extension.


Generated by 1.8.10