mixed_product.hpp 1.0 KB

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