summaryrefslogtreecommitdiff
path: root/src/glm/gtx/projection.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glm/gtx/projection.hpp')
-rw-r--r--src/glm/gtx/projection.hpp60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/glm/gtx/projection.hpp b/src/glm/gtx/projection.hpp
new file mode 100644
index 0000000..fa8e072
--- /dev/null
+++ b/src/glm/gtx/projection.hpp
@@ -0,0 +1,60 @@
+///////////////////////////////////////////////////////////////////////////////////////////////////
+// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
+///////////////////////////////////////////////////////////////////////////////////////////////////
+// Created : 2005-12-21
+// Updated : 2009-03-06
+// Licence : This source is under MIT License
+// File : glm/gtx/projection.hpp
+///////////////////////////////////////////////////////////////////////////////////////////////////
+// Dependency:
+// - GLM core
+///////////////////////////////////////////////////////////////////////////////////////////////////
+
+#ifndef glm_gtx_projection
+#define glm_gtx_projection
+
+// Dependency:
+#include "../glm.hpp"
+
+#if(defined(GLM_MESSAGES) && !defined(glm_ext))
+# pragma message("GLM: GLM_GTX_projection extension included")
+#endif
+
+namespace glm{
+namespace gtx{
+namespace projection ///< GLM_GTX_projection extension: Projection of a vector to other one
+{
+ /// \addtogroup gtx_projection
+ /// @{
+
+ //! Projects x on Normal.
+ //! From GLM_GTX_projection extension.
+ template <typename T>
+ detail::tvec2<T> proj(
+ detail::tvec2<T> const & x,
+ detail::tvec2<T> const & Normal);
+
+ //! Projects x on Normal.
+ //! From GLM_GTX_projection extension.
+ template <typename T>
+ detail::tvec3<T> proj(
+ detail::tvec3<T> const & x,
+ detail::tvec3<T> const & Normal);
+
+ //! Projects x on Normal.
+ //! From GLM_GTX_projection extension.
+ template <typename T>
+ detail::tvec4<T> proj(
+ detail::tvec4<T> const & x,
+ detail::tvec4<T> const & Normal);
+
+ /// @}
+}//namespace projection
+}//namespace gtx
+}//namespace glm
+
+#include "projection.inl"
+
+namespace glm{using namespace gtx::projection;}
+
+#endif//glm_gtx_projection