mixed_product.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #endif
  18. #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  19. # pragma message("GLM: GLM_GTX_mixed_product extension included")
  20. #endif
  21. namespace glm
  22. {
  23. /// @addtogroup gtx_mixed_product
  24. /// @{
  25. /// @brief Mixed product of 3 vectors (from GLM_GTX_mixed_product extension)
  26. template<typename T, qualifier Q>
  27. GLM_FUNC_DECL T mixedProduct(
  28. vec<3, T, Q> const& v1,
  29. vec<3, T, Q> const& v2,
  30. vec<3, T, Q> const& v3);
  31. /// @}
  32. }// namespace glm
  33. #include "mixed_product.inl"