GRK/cw 4/dependencies/glm/gtx/normal.inl
secret_dude a7bd7ecb75 master
2022-01-12 16:07:16 +01:00

17 lines
303 B
C++

/// @ref gtx_normal
/// @file glm/gtx/normal.inl
namespace glm
{
template <typename T, precision P>
GLM_FUNC_QUALIFIER tvec3<T, P> triangleNormal
(
tvec3<T, P> const & p1,
tvec3<T, P> const & p2,
tvec3<T, P> const & p3
)
{
return normalize(cross(p1 - p2, p1 - p3));
}
}//namespace glm