summaryrefslogtreecommitdiffstats
path: root/external/include/glm/gtx/normal.inl
diff options
context:
space:
mode:
Diffstat (limited to 'external/include/glm/gtx/normal.inl')
-rw-r--r--external/include/glm/gtx/normal.inl16
1 files changed, 16 insertions, 0 deletions
diff --git a/external/include/glm/gtx/normal.inl b/external/include/glm/gtx/normal.inl
new file mode 100644
index 0000000..e442317
--- /dev/null
+++ b/external/include/glm/gtx/normal.inl
@@ -0,0 +1,16 @@
+/// @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