29 #ifndef glm_core_type_mat2x4
30 #define glm_core_type_mat2x4
33 #include "type_vec2.hpp"
34 #include "type_vec4.hpp"
35 #include "type_mat.hpp"
41 template <
typename T, precision P>
46 typedef std::size_t size_type;
47 typedef tvec4<T, P> col_type;
48 typedef tvec2<T, P> row_type;
49 typedef tmat2x4<T, P> type;
50 typedef tmat4x2<T, P> transpose_type;
52 GLM_FUNC_DECL GLM_CONSTEXPR length_t
length()
const;
60 GLM_FUNC_DECL tmat2x4();
61 GLM_FUNC_DECL tmat2x4(tmat2x4<T, P>
const & m);
62 template <precision Q>
63 GLM_FUNC_DECL tmat2x4(tmat2x4<T, Q>
const & m);
65 GLM_FUNC_DECL
explicit tmat2x4(
67 GLM_FUNC_DECL
explicit tmat2x4(
69 GLM_FUNC_DECL
explicit tmat2x4(
70 T
const & x0, T
const & y0, T
const & z0, T
const & w0,
71 T
const & x1, T
const & y1, T
const & z1, T
const & w1);
72 GLM_FUNC_DECL
explicit tmat2x4(
76 #if(GLM_HAS_INITIALIZER_LISTS)
78 GLM_FUNC_DECL tmat2x4(std::initializer_list<U> m);
80 GLM_FUNC_DECL tmat2x4(std::initializer_list<tvec4<T, P> > m);
81 #endif//GLM_HAS_INITIALIZER_LISTS
86 typename X1,
typename Y1,
typename Z1,
typename W1,
87 typename X2,
typename Y2,
typename Z2,
typename W2>
88 GLM_FUNC_DECL
explicit tmat2x4(
89 X1
const & x1, Y1
const & y1, Z1
const & z1, W1
const & w1,
90 X2
const & x2, Y2
const & y2, Z2
const & z2, W2
const & w2);
92 template <
typename U,
typename V>
93 GLM_FUNC_DECL
explicit tmat2x4(
94 tvec4<U, P>
const & v1,
95 tvec4<V, P>
const & v2);
99 template <
typename U, precision Q>
100 GLM_FUNC_DECL
explicit tmat2x4(tmat2x4<U, Q>
const & m);
102 GLM_FUNC_DECL
explicit tmat2x4(tmat2x2<T, P>
const & x);
103 GLM_FUNC_DECL
explicit tmat2x4(tmat3x3<T, P>
const & x);
104 GLM_FUNC_DECL
explicit tmat2x4(tmat4x4<T, P>
const & x);
105 GLM_FUNC_DECL
explicit tmat2x4(tmat2x3<T, P>
const & x);
106 GLM_FUNC_DECL
explicit tmat2x4(tmat3x2<T, P>
const & x);
107 GLM_FUNC_DECL
explicit tmat2x4(tmat3x4<T, P>
const & x);
108 GLM_FUNC_DECL
explicit tmat2x4(tmat4x2<T, P>
const & x);
109 GLM_FUNC_DECL
explicit tmat2x4(tmat4x3<T, P>
const & x);
112 GLM_FUNC_DECL col_type & operator[](length_t i);
113 GLM_FUNC_DECL col_type
const & operator[](length_t i)
const;
116 GLM_FUNC_DECL tmat2x4<T, P>& operator= (tmat2x4<T, P>
const & m);
117 template <
typename U>
118 GLM_FUNC_DECL tmat2x4<T, P>& operator= (tmat2x4<U, P>
const & m);
119 template <
typename U>
120 GLM_FUNC_DECL tmat2x4<T, P>& operator+= (U s);
121 template <
typename U>
122 GLM_FUNC_DECL tmat2x4<T, P>& operator+= (tmat2x4<U, P>
const & m);
123 template <
typename U>
124 GLM_FUNC_DECL tmat2x4<T, P>& operator-= (U s);
125 template <
typename U>
126 GLM_FUNC_DECL tmat2x4<T, P>& operator-= (tmat2x4<U, P>
const & m);
127 template <
typename U>
128 GLM_FUNC_DECL tmat2x4<T, P>& operator*= (U s);
129 template <
typename U>
130 GLM_FUNC_DECL tmat2x4<T, P>& operator/= (U s);
135 GLM_FUNC_DECL tmat2x4<T, P> & operator++ ();
136 GLM_FUNC_DECL tmat2x4<T, P> & operator-- ();
137 GLM_FUNC_DECL tmat2x4<T, P> operator++(
int);
138 GLM_FUNC_DECL tmat2x4<T, P> operator--(
int);
143 template <
typename T, precision P>
144 GLM_FUNC_DECL tmat2x4<T, P> operator+ (
145 tmat2x4<T, P>
const & m,
148 template <
typename T, precision P>
149 GLM_FUNC_DECL tmat2x4<T, P> operator+ (
150 tmat2x4<T, P>
const & m1,
151 tmat2x4<T, P>
const & m2);
153 template <
typename T, precision P>
154 GLM_FUNC_DECL tmat2x4<T, P> operator- (
155 tmat2x4<T, P>
const & m,
158 template <
typename T, precision P>
159 GLM_FUNC_DECL tmat2x4<T, P> operator- (
160 tmat2x4<T, P>
const & m1,
161 tmat2x4<T, P>
const & m2);
163 template <
typename T, precision P>
164 GLM_FUNC_DECL tmat2x4<T, P> operator* (
165 tmat2x4<T, P>
const & m,
168 template <
typename T, precision P>
169 GLM_FUNC_DECL tmat2x4<T, P> operator* (
171 tmat2x4<T, P>
const & m);
173 template <
typename T, precision P>
174 GLM_FUNC_DECL
typename tmat2x4<T, P>::col_type operator* (
175 tmat2x4<T, P>
const & m,
176 typename tmat2x4<T, P>::row_type
const & v);
178 template <
typename T, precision P>
179 GLM_FUNC_DECL
typename tmat2x4<T, P>::row_type operator* (
180 typename tmat2x4<T, P>::col_type
const & v,
181 tmat2x4<T, P>
const & m);
183 template <
typename T, precision P>
184 GLM_FUNC_DECL tmat4x4<T, P> operator* (
185 tmat2x4<T, P>
const & m1,
186 tmat4x2<T, P>
const & m2);
188 template <
typename T, precision P>
189 GLM_FUNC_DECL tmat2x4<T, P> operator* (
190 tmat2x4<T, P>
const & m1,
191 tmat2x2<T, P>
const & m2);
193 template <
typename T, precision P>
194 GLM_FUNC_DECL tmat3x4<T, P> operator* (
195 tmat2x4<T, P>
const & m1,
196 tmat3x2<T, P>
const & m2);
198 template <
typename T, precision P>
199 GLM_FUNC_DECL tmat2x4<T, P> operator/ (
200 tmat2x4<T, P>
const & m,
203 template <
typename T, precision P>
204 GLM_FUNC_DECL tmat2x4<T, P> operator/ (
206 tmat2x4<T, P>
const & m);
209 template <
typename T, precision P>
210 GLM_FUNC_DECL tmat2x4<T, P>
const operator- (
211 tmat2x4<T, P>
const & m);
216 #ifndef GLM_EXTERNAL_TEMPLATE
217 #include "type_mat2x4.inl"
220 #endif //glm_core_type_mat2x4
GLM_FUNC_DECL genType::value_type length(genType const &x)
Returns the length of x, i.e., sqrt(x * x).