mixed_product.hpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /// @ref gtx_mixed_product
  2. /// @file glm/gtx/mixed_product.hpp
  3. ///
  4. /// @see core (dependence)
  5. ///
  6. /// @defgroup gtx_mixed_product GLM_GTX_mixed_producte
  7. /// @ingroup gtx
  8. ///
  9. /// Include <glm/gtx/mixed_product.hpp> to use the features of this extension.
  10. ///
  11. /// Mixed product of 3 vectors.
  12. #pragma once
  13. // Dependency:
  14. #include "../glm.hpp"
  15. #ifndef GLM_ENABLE_EXPERIMENTAL
  16. # error "GLM: GLM_GTX_mixed_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."
  17. #elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  18. # pragma message("GLM: GLM_GTX_mixed_product extension included")
  19. #endif
  20. namespace glm
  21. {
  22. /// @addtogroup gtx_mixed_product
  23. /// @{
  24. /// @brief Mixed product of 3 vectors (from GLM_GTX_mixed_product extension)
  25. template<typename T, qualifier Q>
  26. GLM_FUNC_DECL T mixedProduct(
  27. vec<3, T, Q> const& v1,
  28. vec<3, T, Q> const& v2,
  29. vec<3, T, Q> const& v3);
  30. /// @}
  31. }// namespace glm
  32. #include "mixed_product.inl"