exterior_product.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /// @ref gtx_exterior_product
  2. /// @file glm/gtx/exterior_product.hpp
  3. ///
  4. /// @see core (dependence)
  5. /// @see gtx_exterior_product (dependence)
  6. ///
  7. /// @defgroup gtx_exterior_product GLM_GTX_exterior_product
  8. /// @ingroup gtx
  9. ///
  10. /// Include <glm/gtx/exterior_product.hpp> to use the features of this extension.
  11. ///
  12. /// @brief Allow to perform bit operations on integer values
  13. #pragma once
  14. // Dependencies
  15. #include "../detail/setup.hpp"
  16. #include "../detail/qualifier.hpp"
  17. #ifndef GLM_ENABLE_EXPERIMENTAL
  18. # error "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."
  19. #elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  20. # pragma message("GLM: GLM_GTX_exterior_product extension included")
  21. #endif
  22. namespace glm
  23. {
  24. /// @addtogroup gtx_exterior_product
  25. /// @{
  26. /// Returns the cross product of x and y.
  27. ///
  28. /// @tparam T Floating-point scalar types
  29. /// @tparam Q Value from qualifier enum
  30. ///
  31. /// @see <a href="https://en.wikipedia.org/wiki/Exterior_algebra#Cross_and_triple_products">Exterior product</a>
  32. template<typename T, qualifier Q>
  33. GLM_FUNC_DECL GLM_CONSTEXPR T cross(vec<2, T, Q> const& v, vec<2, T, Q> const& u);
  34. /// @}
  35. } //namespace glm
  36. #include "exterior_product.inl"