1/// @ref gtx_normal 2/// @file glm/gtx/normal.inl 3 4namespace glm 5{ 6 template <typename T, precision P> 7 GLM_FUNC_QUALIFIER tvec3<T, P> triangleNormal 8 ( 9 tvec3<T, P> const & p1, 10 tvec3<T, P> const & p2, 11 tvec3<T, P> const & p3 12 ) 13 { 14 return normalize(cross(p1 - p2, p1 - p3)); 15 } 16}//namespace glm 17