18 #include "../detail/precision.hpp"
19 #include "../detail/setup.hpp"
20 #include "../detail/type_mat.hpp"
21 #include "../vec2.hpp"
22 #include "../vec3.hpp"
23 #include "../vec4.hpp"
24 #include "../mat2x2.hpp"
25 #include "../mat2x3.hpp"
26 #include "../mat2x4.hpp"
27 #include "../mat3x2.hpp"
28 #include "../mat3x3.hpp"
29 #include "../mat3x4.hpp"
30 #include "../mat4x2.hpp"
31 #include "../mat4x3.hpp"
32 #include "../mat4x4.hpp"
37 template <
typename T, precision P>
38 struct outerProduct_trait<T, P, tvec2, tvec2>
40 typedef tmat2x2<T, P> type;
43 template <
typename T, precision P>
44 struct outerProduct_trait<T, P, tvec2, tvec3>
46 typedef tmat3x2<T, P> type;
49 template <
typename T, precision P>
50 struct outerProduct_trait<T, P, tvec2, tvec4>
52 typedef tmat4x2<T, P> type;
55 template <
typename T, precision P>
56 struct outerProduct_trait<T, P, tvec3, tvec2>
58 typedef tmat2x3<T, P> type;
61 template <
typename T, precision P>
62 struct outerProduct_trait<T, P, tvec3, tvec3>
64 typedef tmat3x3<T, P> type;
67 template <
typename T, precision P>
68 struct outerProduct_trait<T, P, tvec3, tvec4>
70 typedef tmat4x3<T, P> type;
73 template <
typename T, precision P>
74 struct outerProduct_trait<T, P, tvec4, tvec2>
76 typedef tmat2x4<T, P> type;
79 template <
typename T, precision P>
80 struct outerProduct_trait<T, P, tvec4, tvec3>
82 typedef tmat3x4<T, P> type;
85 template <
typename T, precision P>
86 struct outerProduct_trait<T, P, tvec4, tvec4>
88 typedef tmat4x4<T, P> type;
103 template <
typename T, precision P,
template <
typename, precision>
class matType>
104 GLM_FUNC_DECL matType<T, P>
matrixCompMult(matType<T, P>
const & x, matType<T, P>
const & y);
114 template <
typename T, precision P,
template <
typename, precision>
class vecTypeA,
template <
typename, precision>
class vecTypeB>
115 GLM_FUNC_DECL
typename detail::outerProduct_trait<T, P, vecTypeA, vecTypeB>::type
outerProduct(vecTypeA<T, P>
const & c, vecTypeB<T, P>
const & r);
123 # if((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC2012))
124 template <
typename T, precision P,
template <
typename, precision>
class matType>
125 GLM_FUNC_DECL
typename matType<T, P>::transpose_type transpose(matType<T, P>
const & x);
134 template <
typename T, precision P,
template <
typename, precision>
class matType>
135 GLM_FUNC_DECL T
determinant(matType<T, P>
const & m);
143 template <
typename T, precision P,
template <
typename, precision>
class matType>
144 GLM_FUNC_DECL matType<T, P>
inverse(matType<T, P>
const & m);
149 #include "func_matrix.inl"
GLM_FUNC_DECL T determinant(matType< T, P > const &m)
Returns the transposed matrix of x.
GLM_FUNC_DECL matType< T, P > inverse(matType< T, P > const &m)
Return the inverse of a squared matrix.
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 > 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...