1.3 KB、47行 生 Blame 履歴
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
14#pragma once
15
16// Dependency:
17#include "../glm.hpp"
18
19#ifndef GLM_ENABLE_EXPERIMENTAL
20# 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."
21#endif
22
23#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
24# pragma message("GLM: GLM_GTX_matrix_cross_product extension included")
25#endif
26
27namespace glm
28{
29 /// @addtogroup gtx_matrix_cross_product
30 /// @{
31
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<3, 3, T, Q> matrixCross3(
36 vec<3, T, Q> const& x);
37
38 //! Build a cross product matrix.
39 //! From GLM_GTX_matrix_cross_product extension.
40 template<typename T, qualifier Q>
41 GLM_FUNC_DECL mat<4, 4, T, Q> matrixCross4(
42 vec<3, T, Q> const& x);
43
44 /// @}
45}//namespace glm
46
47#include "matrix_cross_product.inl"