exterior_product.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  18. # pragma message("GLM: GLM_GTX_exterior_product extension included")
  19. #endif
  20. namespace glm
  21. {
  22. /// @addtogroup gtx_exterior_product
  23. /// @{
  24. /// Returns the cross product of x and y.
  25. ///
  26. /// @tparam T Floating-point scalar types
  27. /// @tparam Q Value from qualifier enum
  28. ///
  29. /// @see <a href="https://en.wikipedia.org/wiki/Exterior_algebra#Cross_and_triple_products">Exterior product</a>
  30. template<typename T, qualifier Q>
  31. GLM_FUNC_DECL T cross(vec<2, T, Q> const& v, vec<2, T, Q> const& u);
  32. /// @}
  33. } //namespace glm
  34. #include "exterior_product.inl"