15 template <
typename T, precision P = defaultp>
18 typedef tvec4<T, P> col_type;
19 typedef tvec3<T, P> row_type;
20 typedef tmat3x4<T, P> type;
21 typedef tmat4x3<T, P> transpose_type;
30 GLM_FUNC_DECL tmat3x4() GLM_DEFAULT_CTOR;
31 GLM_FUNC_DECL tmat3x4(tmat3x4<T, P> const & m) GLM_DEFAULT;
32 template <precision Q>
33 GLM_FUNC_DECL tmat3x4(tmat3x4<T, Q> const & m);
35 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR explicit tmat3x4(ctor);
36 GLM_FUNC_DECL explicit tmat3x4(T scalar);
37 GLM_FUNC_DECL tmat3x4(
38 T x0, T y0, T z0, T w0,
39 T x1, T y1, T z1, T w1,
40 T x2, T y2, T z2, T w2);
41 GLM_FUNC_DECL tmat3x4(
49 typename X1, typename Y1, typename Z1, typename W1,
50 typename X2, typename Y2, typename Z2, typename W2,
51 typename X3, typename Y3, typename Z3, typename W3>
52 GLM_FUNC_DECL tmat3x4(
53 X1 x1, Y1 y1, Z1 z1, W1 w1,
54 X2 x2, Y2 y2, Z2 z2, W2 w2,
55 X3 x3, Y3 y3, Z3 z3, W3 w3);
57 template <typename V1, typename V2, typename V3>
58 GLM_FUNC_DECL tmat3x4(
59 tvec4<V1, P> const & v1,
60 tvec4<V2, P> const & v2,
61 tvec4<V3, P> const & v3);
65 template <typename U, precision Q>
66 GLM_FUNC_DECL GLM_EXPLICIT tmat3x4(tmat3x4<U, Q> const & m);
68 GLM_FUNC_DECL GLM_EXPLICIT tmat3x4(tmat2x2<T, P> const & x);
69 GLM_FUNC_DECL GLM_EXPLICIT tmat3x4(tmat3x3<T, P> const & x);
70 GLM_FUNC_DECL GLM_EXPLICIT tmat3x4(tmat4x4<T, P> const & x);
71 GLM_FUNC_DECL GLM_EXPLICIT tmat3x4(tmat2x3<T, P> const & x);
72 GLM_FUNC_DECL GLM_EXPLICIT tmat3x4(tmat3x2<T, P> const & x);
73 GLM_FUNC_DECL GLM_EXPLICIT tmat3x4(tmat2x4<T, P> const & x);
74 GLM_FUNC_DECL GLM_EXPLICIT tmat3x4(tmat4x2<T, P> const & x);
75 GLM_FUNC_DECL GLM_EXPLICIT tmat3x4(tmat4x3<T, P> const & x);
79 typedef length_t length_type;
80 GLM_FUNC_DECL GLM_CONSTEXPR length_type
length() const;
82 GLM_FUNC_DECL col_type & operator[](length_type i);
83 GLM_FUNC_DECL col_type const & operator[](length_type i) const;
87 GLM_FUNC_DECL tmat3x4<T, P> & operator=(tmat3x4<T, P> const & m) GLM_DEFAULT;
90 GLM_FUNC_DECL tmat3x4<T, P> & operator=(tmat3x4<U, P> const & m);
92 GLM_FUNC_DECL tmat3x4<T, P> & operator+=(U s);
94 GLM_FUNC_DECL tmat3x4<T, P> & operator+=(tmat3x4<U, P> const & m);
96 GLM_FUNC_DECL tmat3x4<T, P> & operator-=(U s);
98 GLM_FUNC_DECL tmat3x4<T, P> & operator-=(tmat3x4<U, P> const & m);
100 GLM_FUNC_DECL tmat3x4<T, P> & operator*=(U s);
101 template <typename U>
102 GLM_FUNC_DECL tmat3x4<T, P> & operator/=(U s);
106 GLM_FUNC_DECL tmat3x4<T, P> & operator++();
107 GLM_FUNC_DECL tmat3x4<T, P> & operator--();
108 GLM_FUNC_DECL tmat3x4<T, P> operator++(
int);
109 GLM_FUNC_DECL tmat3x4<T, P> operator--(
int);
114 template <typename T, precision P>
115 GLM_FUNC_DECL tmat3x4<T, P> operator+(tmat3x4<T, P> const & m);
117 template <typename T, precision P>
118 GLM_FUNC_DECL tmat3x4<T, P> operator-(tmat3x4<T, P> const & m);
122 template <typename T, precision P>
123 GLM_FUNC_DECL tmat3x4<T, P> operator+(tmat3x4<T, P> const & m, T scalar);
125 template <typename T, precision P>
126 GLM_FUNC_DECL tmat3x4<T, P> operator+(tmat3x4<T, P> const & m1, tmat3x4<T, P> const & m2);
128 template <typename T, precision P>
129 GLM_FUNC_DECL tmat3x4<T, P> operator-(tmat3x4<T, P> const & m, T scalar);
131 template <typename T, precision P>
132 GLM_FUNC_DECL tmat3x4<T, P> operator-(tmat3x4<T, P> const & m1, tmat3x4<T, P> const & m2);
134 template <typename T, precision P>
135 GLM_FUNC_DECL tmat3x4<T, P> operator*(tmat3x4<T, P> const & m, T scalar);
137 template <typename T, precision P>
138 GLM_FUNC_DECL tmat3x4<T, P> operator*(T scalar, tmat3x4<T, P> const & m);
140 template <typename T, precision P>
141 GLM_FUNC_DECL typename tmat3x4<T, P>::col_type operator*(tmat3x4<T, P> const & m, typename tmat3x4<T, P>::row_type const & v);
143 template <typename T, precision P>
144 GLM_FUNC_DECL typename tmat3x4<T, P>::row_type operator*(typename tmat3x4<T, P>::col_type const & v, tmat3x4<T, P> const & m);
146 template <typename T, precision P>
147 GLM_FUNC_DECL tmat4x4<T, P> operator*(tmat3x4<T, P> const & m1, tmat4x3<T, P> const & m2);
149 template <typename T, precision P>
150 GLM_FUNC_DECL tmat2x4<T, P> operator*(tmat3x4<T, P> const & m1, tmat2x3<T, P> const & m2);
152 template <typename T, precision P>
153 GLM_FUNC_DECL tmat3x4<T, P> operator*(tmat3x4<T, P> const & m1, tmat3x3<T, P> const & m2);
155 template <typename T, precision P>
156 GLM_FUNC_DECL tmat3x4<T, P> operator/(tmat3x4<T, P> const & m, T scalar);
158 template <typename T, precision P>
159 GLM_FUNC_DECL tmat3x4<T, P> operator/(T scalar, tmat3x4<T, P> const & m);
163 template <typename T, precision P>
164 GLM_FUNC_DECL
bool operator==(tmat3x4<T, P> const & m1, tmat3x4<T, P> const & m2);
166 template <typename T, precision P>
167 GLM_FUNC_DECL
bool operator!=(tmat3x4<T, P> const & m1, tmat3x4<T, P> const & m2);
170 #ifndef GLM_EXTERNAL_TEMPLATE
171 #include "type_mat3x4.inl"
GLM_FUNC_DECL T length(vecType< T, P > const &x)
Returns the length of x, i.e., sqrt(x * x).