summaryrefslogtreecommitdiffstats
path: root/external/include/glm/gtx/projection.inl
diff options
context:
space:
mode:
Diffstat (limited to 'external/include/glm/gtx/projection.inl')
-rw-r--r--external/include/glm/gtx/projection.inl11
1 files changed, 11 insertions, 0 deletions
diff --git a/external/include/glm/gtx/projection.inl b/external/include/glm/gtx/projection.inl
new file mode 100644
index 0000000..d21fe83
--- /dev/null
+++ b/external/include/glm/gtx/projection.inl
@@ -0,0 +1,11 @@
+/// @ref gtx_projection
+/// @file glm/gtx/projection.inl
+
+namespace glm
+{
+ template <typename vecType>
+ GLM_FUNC_QUALIFIER vecType proj(vecType const & x, vecType const & Normal)
+ {
+ return glm::dot(x, Normal) / glm::dot(Normal, Normal) * Normal;
+ }
+}//namespace glm