exterior_product.hpp 1.3 KB

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