Clutter Engine 0.0.1
Loading...
Searching...
No Matches
matrix.hpp
Go to the documentation of this file.
1
12
13#pragma once
14
15// Dependencies
16#include "detail/qualifier.hpp"
17#include "detail/setup.hpp"
18#include "vec2.hpp"
19#include "vec3.hpp"
20#include "vec4.hpp"
21#include "mat2x2.hpp"
22#include "mat2x3.hpp"
23#include "mat2x4.hpp"
24#include "mat3x2.hpp"
25#include "mat3x3.hpp"
26#include "mat3x4.hpp"
27#include "mat4x2.hpp"
28#include "mat4x3.hpp"
29#include "mat4x4.hpp"
30
31namespace glm {
32namespace detail
33{
34 template<length_t C, length_t R, typename T, qualifier Q>
36
37 template<typename T, qualifier Q>
38 struct outerProduct_trait<2, 2, T, Q>
39 {
40 typedef mat<2, 2, T, Q> type;
41 };
42
43 template<typename T, qualifier Q>
44 struct outerProduct_trait<2, 3, T, Q>
45 {
46 typedef mat<3, 2, T, Q> type;
47 };
48
49 template<typename T, qualifier Q>
50 struct outerProduct_trait<2, 4, T, Q>
51 {
52 typedef mat<4, 2, T, Q> type;
53 };
54
55 template<typename T, qualifier Q>
56 struct outerProduct_trait<3, 2, T, Q>
57 {
58 typedef mat<2, 3, T, Q> type;
59 };
60
61 template<typename T, qualifier Q>
62 struct outerProduct_trait<3, 3, T, Q>
63 {
64 typedef mat<3, 3, T, Q> type;
65 };
66
67 template<typename T, qualifier Q>
68 struct outerProduct_trait<3, 4, T, Q>
69 {
70 typedef mat<4, 3, T, Q> type;
71 };
72
73 template<typename T, qualifier Q>
74 struct outerProduct_trait<4, 2, T, Q>
75 {
76 typedef mat<2, 4, T, Q> type;
77 };
78
79 template<typename T, qualifier Q>
80 struct outerProduct_trait<4, 3, T, Q>
81 {
82 typedef mat<3, 4, T, Q> type;
83 };
84
85 template<typename T, qualifier Q>
86 struct outerProduct_trait<4, 4, T, Q>
87 {
88 typedef mat<4, 4, T, Q> type;
89 };
90}//namespace detail
91
94
105 template<length_t C, length_t R, typename T, qualifier Q>
106 GLM_FUNC_DECL mat<C, R, T, Q> matrixCompMult(mat<C, R, T, Q> const& x, mat<C, R, T, Q> const& y);
107
119 template<length_t C, length_t R, typename T, qualifier Q>
120 GLM_FUNC_DECL typename detail::outerProduct_trait<C, R, T, Q>::type outerProduct(vec<C, T, Q> const& c, vec<R, T, Q> const& r);
121
131 template<length_t C, length_t R, typename T, qualifier Q>
132 GLM_FUNC_DECL typename mat<C, R, T, Q>::transpose_type transpose(mat<C, R, T, Q> const& x);
133
143 template<length_t C, length_t R, typename T, qualifier Q>
144 GLM_FUNC_DECL T determinant(mat<C, R, T, Q> const& m);
145
155 template<length_t C, length_t R, typename T, qualifier Q>
156 GLM_FUNC_DECL mat<C, R, T, Q> inverse(mat<C, R, T, Q> const& m);
157
159}//namespace glm
160
161#include "detail/func_matrix.inl"
GLM_FUNC_QUALIFIER mat< C, R, T, Q > matrixCompMult(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y)
Definition func_matrix.inl:356
GLM_FUNC_QUALIFIER mat< C, R, T, Q > inverse(mat< C, R, T, Q > const &m)
Definition func_matrix.inl:388
GLM_FUNC_QUALIFIER T determinant(mat< C, R, T, Q > const &m)
Definition func_matrix.inl:381
detail namespace with internal helper functions
Definition json.h:249
Core features
Definition common.hpp:21
Definition matrix.hpp:35
Definition type_mat2x2.hpp:14
Definition type_mat2x3.hpp:15
Definition type_mat2x4.hpp:15
Definition type_mat3x2.hpp:15
Definition type_mat3x3.hpp:14
Definition type_mat3x4.hpp:15
Definition type_mat4x2.hpp:15
Definition type_mat4x3.hpp:15
Definition type_mat4x4.hpp:14
Definition qualifier.hpp:36
Definition qualifier.hpp:35