matrix_cross_product.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /// @ref gtx_matrix_cross_product
  2. /// @file glm/gtx/matrix_cross_product.hpp
  3. ///
  4. /// @see core (dependence)
  5. /// @see gtx_extented_min_max (dependence)
  6. ///
  7. /// @defgroup gtx_matrix_cross_product GLM_GTX_matrix_cross_product
  8. /// @ingroup gtx
  9. ///
  10. /// Include <glm/gtx/matrix_cross_product.hpp> to use the features of this extension.
  11. ///
  12. /// Build cross product matrices
  13. #pragma once
  14. // Dependency:
  15. #include "../glm.hpp"
  16. #ifndef GLM_ENABLE_EXPERIMENTAL
  17. # error "GLM: GLM_GTX_matrix_cross_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. #elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  19. # pragma message("GLM: GLM_GTX_matrix_cross_product extension included")
  20. #endif
  21. namespace glm
  22. {
  23. /// @addtogroup gtx_matrix_cross_product
  24. /// @{
  25. //! Build a cross product matrix.
  26. //! From GLM_GTX_matrix_cross_product extension.
  27. template<typename T, qualifier Q>
  28. GLM_FUNC_DECL mat<3, 3, T, Q> matrixCross3(
  29. vec<3, T, Q> const& x);
  30. //! Build a cross product matrix.
  31. //! From GLM_GTX_matrix_cross_product extension.
  32. template<typename T, qualifier Q>
  33. GLM_FUNC_DECL mat<4, 4, T, Q> matrixCross4(
  34. vec<3, T, Q> const& x);
  35. /// @}
  36. }//namespace glm
  37. #include "matrix_cross_product.inl"