matrix_cross_product.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #endif
  19. #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  20. # pragma message("GLM: GLM_GTX_matrix_cross_product extension included")
  21. #endif
  22. namespace glm
  23. {
  24. /// @addtogroup gtx_matrix_cross_product
  25. /// @{
  26. //! Build a cross product matrix.
  27. //! From GLM_GTX_matrix_cross_product extension.
  28. template<typename T, qualifier Q>
  29. GLM_FUNC_DECL mat<3, 3, T, Q> matrixCross3(
  30. vec<3, T, Q> const& x);
  31. //! Build a cross product matrix.
  32. //! From GLM_GTX_matrix_cross_product extension.
  33. template<typename T, qualifier Q>
  34. GLM_FUNC_DECL mat<4, 4, T, Q> matrixCross4(
  35. vec<3, T, Q> const& x);
  36. /// @}
  37. }//namespace glm
  38. #include "matrix_cross_product.inl"