29 #ifndef glm_core_type_mat4x3
30 #define glm_core_type_mat4x3
33 #include "type_vec3.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 tvec3<T, P> col_type;
48 typedef tvec4<T, P> row_type;
49 typedef tmat4x3<T, P> type;
50 typedef tmat3x4<T, P> transpose_type;
52 GLM_FUNC_DECL GLM_CONSTEXPR length_t
length()
const;
60 GLM_FUNC_DECL tmat4x3();
61 GLM_FUNC_DECL tmat4x3(tmat4x3<T, P>
const & m);
62 template <precision Q>
63 GLM_FUNC_DECL tmat4x3(tmat4x3<T, Q>
const & m);
65 GLM_FUNC_DECL
explicit tmat4x3(
67 GLM_FUNC_DECL
explicit tmat4x3(
69 GLM_FUNC_DECL
explicit tmat4x3(
70 T
const & x0, T
const & y0, T
const & z0,
71 T
const & x1, T
const & y1, T
const & z1,
72 T
const & x2, T
const & y2, T
const & z2,
73 T
const & x3, T
const & y3, T
const & z3);
74 GLM_FUNC_DECL
explicit tmat4x3(
80 #if(GLM_HAS_INITIALIZER_LISTS)
82 GLM_FUNC_DECL tmat4x3(std::initializer_list<U> m);
84 GLM_FUNC_DECL tmat4x3(std::initializer_list<tvec3<T, P> > m);
85 #endif//GLM_HAS_INITIALIZER_LISTS
91 typename X1,
typename Y1,
typename Z1,
92 typename X2,
typename Y2,
typename Z2,
93 typename X3,
typename Y3,
typename Z3,
94 typename X4,
typename Y4,
typename Z4>
95 GLM_FUNC_DECL
explicit tmat4x3(
96 X1
const & x1, Y1
const & y1, Z1
const & z1,
97 X2
const & x2, Y2
const & y2, Z2
const & z2,
98 X3
const & x3, Y3
const & y3, Z3
const & z3,
99 X4
const & x4, Y4
const & y4, Z4
const & z4);
101 template <
typename V1,
typename V2,
typename V3,
typename V4>
102 GLM_FUNC_DECL
explicit tmat4x3(
103 tvec3<V1, P>
const & v1,
104 tvec3<V2, P>
const & v2,
105 tvec3<V3, P>
const & v3,
106 tvec3<V4, P>
const & v4);
109 template <
typename U, precision Q>
110 GLM_FUNC_DECL
explicit tmat4x3(tmat4x3<U, Q>
const & m);
112 GLM_FUNC_DECL
explicit tmat4x3(tmat2x2<T, P>
const & x);
113 GLM_FUNC_DECL
explicit tmat4x3(tmat3x3<T, P>
const & x);
114 GLM_FUNC_DECL
explicit tmat4x3(tmat4x4<T, P>
const & x);
115 GLM_FUNC_DECL
explicit tmat4x3(tmat2x3<T, P>
const & x);
116 GLM_FUNC_DECL
explicit tmat4x3(tmat3x2<T, P>
const & x);
117 GLM_FUNC_DECL
explicit tmat4x3(tmat2x4<T, P>
const & x);
118 GLM_FUNC_DECL
explicit tmat4x3(tmat4x2<T, P>
const & x);
119 GLM_FUNC_DECL
explicit tmat4x3(tmat3x4<T, P>
const & x);
122 GLM_FUNC_DECL col_type & operator[](size_type i);
123 GLM_FUNC_DECL col_type
const & operator[](size_type i)
const;
126 GLM_FUNC_DECL tmat4x3<T, P> & operator= (tmat4x3<T, P>
const & m);
127 template <
typename U>
128 GLM_FUNC_DECL tmat4x3<T, P> & operator= (tmat4x3<U, P>
const & m);
129 template <
typename U>
130 GLM_FUNC_DECL tmat4x3<T, P> & operator+= (U s);
131 template <
typename U>
132 GLM_FUNC_DECL tmat4x3<T, P> & operator+= (tmat4x3<U, P>
const & m);
133 template <
typename U>
134 GLM_FUNC_DECL tmat4x3<T, P> & operator-= (U s);
135 template <
typename U>
136 GLM_FUNC_DECL tmat4x3<T, P> & operator-= (tmat4x3<U, P>
const & m);
137 template <
typename U>
138 GLM_FUNC_DECL tmat4x3<T, P> & operator*= (U s);
139 template <
typename U>
140 GLM_FUNC_DECL tmat4x3<T, P> & operator/= (U s);
145 GLM_FUNC_DECL tmat4x3<T, P> & operator++ ();
146 GLM_FUNC_DECL tmat4x3<T, P> & operator-- ();
147 GLM_FUNC_DECL tmat4x3<T, P> operator++(
int);
148 GLM_FUNC_DECL tmat4x3<T, P> operator--(
int);
152 template <
typename T, precision P>
153 GLM_FUNC_DECL tmat4x3<T, P> operator+ (
154 tmat4x3<T, P>
const & m,
157 template <
typename T, precision P>
158 GLM_FUNC_DECL tmat4x3<T, P> operator+ (
159 tmat4x3<T, P>
const & m1,
160 tmat4x3<T, P>
const & m2);
162 template <
typename T, precision P>
163 GLM_FUNC_DECL tmat4x3<T, P> operator- (
164 tmat4x3<T, P>
const & m,
167 template <
typename T, precision P>
168 GLM_FUNC_DECL tmat4x3<T, P> operator- (
169 tmat4x3<T, P>
const & m1,
170 tmat4x3<T, P>
const & m2);
172 template <
typename T, precision P>
173 GLM_FUNC_DECL tmat4x3<T, P> operator* (
174 tmat4x3<T, P>
const & m,
177 template <
typename T, precision P>
178 GLM_FUNC_DECL tmat4x3<T, P> operator* (
180 tmat4x3<T, P>
const & m);
182 template <
typename T, precision P>
183 GLM_FUNC_DECL
typename tmat4x3<T, P>::col_type operator* (
184 tmat4x3<T, P>
const & m,
185 typename tmat4x3<T, P>::row_type
const & v);
187 template <
typename T, precision P>
188 GLM_FUNC_DECL
typename tmat4x3<T, P>::row_type operator* (
189 typename tmat4x3<T, P>::col_type
const & v,
190 tmat4x3<T, P>
const & m);
192 template <
typename T, precision P>
193 GLM_FUNC_DECL tmat2x3<T, P> operator* (
194 tmat4x3<T, P>
const & m1,
195 tmat2x4<T, P>
const & m2);
197 template <
typename T, precision P>
198 GLM_FUNC_DECL tmat3x3<T, P> operator* (
199 tmat4x3<T, P>
const & m1,
200 tmat3x4<T, P>
const & m2);
202 template <
typename T, precision P>
203 GLM_FUNC_DECL tmat4x3<T, P> operator* (
204 tmat4x3<T, P>
const & m1,
205 tmat4x4<T, P>
const & m2);
207 template <
typename T, precision P>
208 GLM_FUNC_DECL tmat4x3<T, P> operator/ (
209 tmat4x3<T, P>
const & m,
212 template <
typename T, precision P>
213 GLM_FUNC_DECL tmat4x3<T, P> operator/ (
215 tmat4x3<T, P>
const & m);
218 template <
typename T, precision P>
219 GLM_FUNC_DECL tmat4x3<T, P>
const operator- (
220 tmat4x3<T, P>
const & m);
225 #ifndef GLM_EXTERNAL_TEMPLATE
226 #include "type_mat4x3.inl"
227 #endif //GLM_EXTERNAL_TEMPLATE
229 #endif//glm_core_type_mat4x3
GLM_FUNC_DECL genType::value_type length(genType const &x)
Returns the length of x, i.e., sqrt(x * x).