matrix_cross_product.hpp 1.3 KB

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