43 #include "../detail/precision.hpp"
44 #include "../detail/setup.hpp"
45 #include "../detail/type_mat.hpp"
46 #include "../vec2.hpp"
47 #include "../vec3.hpp"
48 #include "../vec4.hpp"
49 #include "../mat2x2.hpp"
50 #include "../mat2x3.hpp"
51 #include "../mat2x4.hpp"
52 #include "../mat3x2.hpp"
53 #include "../mat3x3.hpp"
54 #include "../mat3x4.hpp"
55 #include "../mat4x2.hpp"
56 #include "../mat4x3.hpp"
57 #include "../mat4x4.hpp"
62 template <
typename T, precision P>
63 struct outerProduct_trait<T, P, tvec2, tvec2>
65 typedef tmat2x2<T, P> type;
68 template <
typename T, precision P>
69 struct outerProduct_trait<T, P, tvec2, tvec3>
71 typedef tmat2x3<T, P> type;
74 template <
typename T, precision P>
75 struct outerProduct_trait<T, P, tvec2, tvec4>
77 typedef tmat2x4<T, P> type;
80 template <
typename T, precision P>
81 struct outerProduct_trait<T, P, tvec3, tvec2>
83 typedef tmat3x2<T, P> type;
86 template <
typename T, precision P>
87 struct outerProduct_trait<T, P, tvec3, tvec3>
89 typedef tmat3x3<T, P> type;
92 template <
typename T, precision P>
93 struct outerProduct_trait<T, P, tvec3, tvec4>
95 typedef tmat3x4<T, P> type;
98 template <
typename T, precision P>
99 struct outerProduct_trait<T, P, tvec4, tvec2>
101 typedef tmat4x2<T, P> type;
104 template <
typename T, precision P>
105 struct outerProduct_trait<T, P, tvec4, tvec3>
107 typedef tmat4x3<T, P> type;
110 template <
typename T, precision P>
111 struct outerProduct_trait<T, P, tvec4, tvec4>
113 typedef tmat4x4<T, P> type;
128 template <
typename T, precision P,
template <
typename, precision>
class matType>
129 GLM_FUNC_DECL matType<T, P>
matrixCompMult(matType<T, P>
const & x, matType<T, P>
const & y);
139 template <
typename T, precision P,
template <
typename, precision>
class vecTypeA,
template <
typename, precision>
class vecTypeB>
140 GLM_FUNC_DECL
typename detail::outerProduct_trait<T, P, vecTypeA, vecTypeB>::type
outerProduct(vecTypeA<T, P>
const & c, vecTypeB<T, P>
const & r);
148 # if((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC2012))
149 template <
typename T, precision P,
template <
typename, precision>
class matType>
150 GLM_FUNC_DECL
typename matType<T, P>::transpose_type transpose(matType<T, P>
const & x);
159 template <
typename T, precision P,
template <
typename, precision>
class matType>
160 GLM_FUNC_DECL T
determinant(matType<T, P>
const & m);
168 template <
typename T, precision P,
template <
typename, precision>
class matType>
169 GLM_FUNC_DECL matType<T, P>
inverse(matType<T, P>
const & m);
174 #include "func_matrix.inl"
GLM_FUNC_DECL detail::outerProduct_trait< T, P, vecTypeA, vecTypeB >::type outerProduct(vecTypeA< T, P > const &c, vecTypeB< T, P > const &r)
Treats the first parameter c as a column vector and the second parameter r as a row vector and does a...
GLM_FUNC_DECL matType< T, P > inverse(matType< T, P > const &m)
Return the inverse of a squared matrix.
GLM_FUNC_DECL matType< T, P > matrixCompMult(matType< T, P > const &x, matType< T, P > const &y)
Multiply matrix x by matrix y component-wise, i.e., result[i][j] is the scalar product of x[i][j] and...
GLM_FUNC_DECL T determinant(matType< T, P > const &m)
Returns the transposed matrix of x.