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