15 template <
typename T, precision P = defaultp>
18 typedef tvec2<T, P> col_type;
19 typedef tvec3<T, P> row_type;
20 typedef tmat3x2<T, P> type;
21 typedef tmat2x3<T, P> transpose_type;
30 GLM_FUNC_DECL tmat3x2() GLM_DEFAULT_CTOR;
31 GLM_FUNC_DECL tmat3x2(tmat3x2<T, P> const & m) GLM_DEFAULT;
32 template <precision Q>
33 GLM_FUNC_DECL tmat3x2(tmat3x2<T, Q> const & m);
35 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR explicit tmat3x2(ctor);
36 GLM_FUNC_DECL explicit tmat3x2(T scalar);
37 GLM_FUNC_DECL tmat3x2(
41 GLM_FUNC_DECL tmat3x2(
49 typename X1, typename Y1,
50 typename X2, typename Y2,
51 typename X3, typename Y3>
52 GLM_FUNC_DECL tmat3x2(
57 template <typename V1, typename V2, typename V3>
58 GLM_FUNC_DECL tmat3x2(
59 tvec2<V1, P> const & v1,
60 tvec2<V2, P> const & v2,
61 tvec2<V3, P> const & v3);
65 template <typename U, precision Q>
66 GLM_FUNC_DECL GLM_EXPLICIT tmat3x2(tmat3x2<U, Q> const & m);
68 GLM_FUNC_DECL GLM_EXPLICIT tmat3x2(tmat2x2<T, P> const & x);
69 GLM_FUNC_DECL GLM_EXPLICIT tmat3x2(tmat3x3<T, P> const & x);
70 GLM_FUNC_DECL GLM_EXPLICIT tmat3x2(tmat4x4<T, P> const & x);
71 GLM_FUNC_DECL GLM_EXPLICIT tmat3x2(tmat2x3<T, P> const & x);
72 GLM_FUNC_DECL GLM_EXPLICIT tmat3x2(tmat2x4<T, P> const & x);
73 GLM_FUNC_DECL GLM_EXPLICIT tmat3x2(tmat3x4<T, P> const & x);
74 GLM_FUNC_DECL GLM_EXPLICIT tmat3x2(tmat4x2<T, P> const & x);
75 GLM_FUNC_DECL GLM_EXPLICIT tmat3x2(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 tmat3x2<T, P> & operator=(tmat3x2<T, P> const & m) GLM_DEFAULT;
90 GLM_FUNC_DECL tmat3x2<T, P> & operator=(tmat3x2<U, P> const & m);
92 GLM_FUNC_DECL tmat3x2<T, P> & operator+=(U s);
94 GLM_FUNC_DECL tmat3x2<T, P> & operator+=(tmat3x2<U, P> const & m);
96 GLM_FUNC_DECL tmat3x2<T, P> & operator-=(U s);
98 GLM_FUNC_DECL tmat3x2<T, P> & operator-=(tmat3x2<U, P> const & m);
100 GLM_FUNC_DECL tmat3x2<T, P> & operator*=(U s);
101 template <typename U>
102 GLM_FUNC_DECL tmat3x2<T, P> & operator/=(U s);
106 GLM_FUNC_DECL tmat3x2<T, P> & operator++ ();
107 GLM_FUNC_DECL tmat3x2<T, P> & operator-- ();
108 GLM_FUNC_DECL tmat3x2<T, P> operator++(
int);
109 GLM_FUNC_DECL tmat3x2<T, P> operator--(
int);
114 template <typename T, precision P>
115 GLM_FUNC_DECL tmat3x2<T, P> operator+(tmat3x2<T, P> const & m);
117 template <typename T, precision P>
118 GLM_FUNC_DECL tmat3x2<T, P> operator-(tmat3x2<T, P> const & m);
122 template <typename T, precision P>
123 GLM_FUNC_DECL tmat3x2<T, P> operator+(tmat3x2<T, P> const & m, T scalar);
125 template <typename T, precision P>
126 GLM_FUNC_DECL tmat3x2<T, P> operator+(tmat3x2<T, P> const & m1, tmat3x2<T, P> const & m2);
128 template <typename T, precision P>
129 GLM_FUNC_DECL tmat3x2<T, P> operator-(tmat3x2<T, P> const & m, T scalar);
131 template <typename T, precision P>
132 GLM_FUNC_DECL tmat3x2<T, P> operator-(tmat3x2<T, P> const & m1, tmat3x2<T, P> const & m2);
134 template <typename T, precision P>
135 GLM_FUNC_DECL tmat3x2<T, P> operator*(tmat3x2<T, P> const & m, T scalar);
137 template <typename T, precision P>
138 GLM_FUNC_DECL tmat3x2<T, P> operator*(T scalar, tmat3x2<T, P> const & m);
140 template <typename T, precision P>
141 GLM_FUNC_DECL typename tmat3x2<T, P>::col_type operator*(tmat3x2<T, P> const & m, typename tmat3x2<T, P>::row_type const & v);
143 template <typename T, precision P>
144 GLM_FUNC_DECL typename tmat3x2<T, P>::row_type operator*(typename tmat3x2<T, P>::col_type const & v, tmat3x2<T, P> const & m);
146 template <typename T, precision P>
147 GLM_FUNC_DECL tmat2x2<T, P> operator*(tmat3x2<T, P> const & m1, tmat2x3<T, P> const & m2);
149 template <typename T, precision P>
150 GLM_FUNC_DECL tmat3x2<T, P> operator*(tmat3x2<T, P> const & m1, tmat3x3<T, P> const & m2);
152 template <typename T, precision P>
153 GLM_FUNC_DECL tmat4x2<T, P> operator*(tmat3x2<T, P> const & m1, tmat4x3<T, P> const & m2);
155 template <typename T, precision P>
156 GLM_FUNC_DECL tmat3x2<T, P> operator/(tmat3x2<T, P> const & m, T scalar);
158 template <typename T, precision P>
159 GLM_FUNC_DECL tmat3x2<T, P> operator/(T scalar, tmat3x2<T, P> const & m);
163 template <typename T, precision P>
164 GLM_FUNC_DECL
bool operator==(tmat3x2<T, P> const & m1, tmat3x2<T, P> const & m2);
166 template <typename T, precision P>
167 GLM_FUNC_DECL
bool operator!=(tmat3x2<T, P> const & m1, tmat3x2<T, P> const & m2);
171 #ifndef GLM_EXTERNAL_TEMPLATE
172 #include "type_mat3x2.inl"
GLM_FUNC_DECL T length(vecType< T, P > const &x)
Returns the length of x, i.e., sqrt(x * x).