This commit is contained in:
abdelrahman committed 2026-06-14 19:09:18 +01:00
1 parent 14bd1a9271
commit 13fa90a0e9
3958 files changed
+999286 -4

No files matched your search

+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