This commit is contained in:
2026-06-14 19:09:18 +01:00
parent 14bd1a9271
commit 13fa90a0e9
3958 changed files with 999286 additions and 4 deletions
+16
View File
@@ -0,0 +1,16 @@
/// @ref gtx_normal
/// @file glm/gtx/normal.inl
namespace glm
{
template<typename T, precision P>
GLM_FUNC_QUALIFIER vec<3, T, P> triangleNormal
(
vec<3, T, P> const & p1,
vec<3, T, P> const & p2,
vec<3, T, P> const & p3
)
{
return normalize(cross(p1 - p2, p1 - p3));
}
}//namespace glm