aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/glm/gtx/exterior_product.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/glm/gtx/exterior_product.hpp')
-rw-r--r--src/include/glm/gtx/exterior_product.hpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/include/glm/gtx/exterior_product.hpp b/src/include/glm/gtx/exterior_product.hpp
new file mode 100644
index 0000000..cc41fa8
--- /dev/null
+++ b/src/include/glm/gtx/exterior_product.hpp
@@ -0,0 +1,45 @@
+/// @ref gtx_exterior_product
+/// @file glm/gtx/exterior_product.hpp
+///
+/// @see core (dependence)
+/// @see gtx_exterior_product (dependence)
+///
+/// @defgroup gtx_exterior_product GLM_GTX_exterior_product
+/// @ingroup gtx
+///
+/// Include <glm/gtx/exterior_product.hpp> to use the features of this extension.
+///
+/// @brief Allow to perform bit operations on integer values
+
+#pragma once
+
+// Dependencies
+#include "../detail/setup.hpp"
+#include "../detail/qualifier.hpp"
+
+#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
+# ifndef GLM_ENABLE_EXPERIMENTAL
+# pragma message("GLM: GLM_GTX_exterior_product is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
+# else
+# pragma message("GLM: GLM_GTX_exterior_product extension included")
+# endif
+#endif
+
+namespace glm
+{
+ /// @addtogroup gtx_exterior_product
+ /// @{
+
+ /// Returns the cross product of x and y.
+ ///
+ /// @tparam T Floating-point scalar types
+ /// @tparam Q Value from qualifier enum
+ ///
+ /// @see <a href="https://en.wikipedia.org/wiki/Exterior_algebra#Cross_and_triple_products">Exterior product</a>
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL T cross(vec<2, T, Q> const& v, vec<2, T, Q> const& u);
+
+ /// @}
+} //namespace glm
+
+#include "exterior_product.inl"