1 /// @ref gtx_normal
2 /// @file glm/gtx/normal.hpp
3 ///
4 /// @see core (dependence)
5 /// @see gtx_extented_min_max (dependence)
6 ///
7 /// @defgroup gtx_normal GLM_GTX_normal
8 /// @ingroup gtx
9 ///
10 /// @brief Compute the normal of a triangle.
11 ///
12 /// <glm/gtx/normal.hpp> need to be included to use these functionalities.
13 
14 #pragma once
15 
16 // Dependency:
17 #include "../glm.hpp"
18 
19 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
20 #	pragma message("GLM: GLM_GTX_normal extension included")
21 #endif
22 
23 namespace glm
24 {
25 	/// @addtogroup gtx_normal
26 	/// @{
27 
28 	//! Computes triangle normal from triangle points.
29 	//! From GLM_GTX_normal extension.
30 	template <typename T, precision P>
31 	GLM_FUNC_DECL tvec3<T, P> triangleNormal(
32 		tvec3<T, P> const & p1,
33 		tvec3<T, P> const & p2,
34 		tvec3<T, P> const & p3);
35 
36 	/// @}
37 }//namespace glm
38 
39 #include "normal.inl"
40