summaryrefslogtreecommitdiffstats
path: root/external/include/glm/gtx/matrix_cross_product.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'external/include/glm/gtx/matrix_cross_product.hpp')
-rw-r--r--external/include/glm/gtx/matrix_cross_product.hpp22
1 files changed, 13 insertions, 9 deletions
diff --git a/external/include/glm/gtx/matrix_cross_product.hpp b/external/include/glm/gtx/matrix_cross_product.hpp
index d920f4e..dfad8c1 100644
--- a/external/include/glm/gtx/matrix_cross_product.hpp
+++ b/external/include/glm/gtx/matrix_cross_product.hpp
@@ -7,15 +7,19 @@
/// @defgroup gtx_matrix_cross_product GLM_GTX_matrix_cross_product
/// @ingroup gtx
///
-/// @brief Build cross product matrices
+/// Include <glm/gtx/matrix_cross_product.hpp> to use the features of this extension.
///
-/// <glm/gtx/matrix_cross_product.hpp> need to be included to use these functionalities.
+/// Build cross product matrices
#pragma once
// Dependency:
#include "../glm.hpp"
+#ifndef GLM_ENABLE_EXPERIMENTAL
+# 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."
+#endif
+
#if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_GTX_matrix_cross_product extension included")
#endif
@@ -27,15 +31,15 @@ namespace glm
//! Build a cross product matrix.
//! From GLM_GTX_matrix_cross_product extension.
- template <typename T, precision P>
- GLM_FUNC_DECL tmat3x3<T, P> matrixCross3(
- tvec3<T, P> const & x);
-
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL mat<3, 3, T, Q> matrixCross3(
+ vec<3, T, Q> const& x);
+
//! Build a cross product matrix.
//! From GLM_GTX_matrix_cross_product extension.
- template <typename T, precision P>
- GLM_FUNC_DECL tmat4x4<T, P> matrixCross4(
- tvec3<T, P> const & x);
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL mat<4, 4, T, Q> matrixCross4(
+ vec<3, T, Q> const& x);
/// @}
}//namespace glm