14 template<
typename T, qualifier Q>
15 struct mat<3, 3, T, Q>
17 typedef vec<3, T, Q> col_type;
18 typedef vec<3, T, Q> row_type;
19 typedef mat<3, 3, T, Q> type;
20 typedef mat<3, 3, T, Q> transpose_type;
29 typedef length_t length_type;
30 GLM_FUNC_DECL
static GLM_CONSTEXPR length_type
length() {
return 3; }
32 GLM_FUNC_DECL col_type & operator[](length_type i);
33 GLM_FUNC_DECL col_type
const& operator[](length_type i)
const;
37 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR_CXX14 mat() GLM_DEFAULT_CTOR;
38 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR_CXX14 mat(mat<3, 3, T, Q> const& m) GLM_DEFAULT;
40 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR_CXX14 mat(mat<3, 3, T, P> const& m);
42 GLM_FUNC_DECL explicit GLM_CONSTEXPR_CTOR_CXX14 mat(T scalar);
43 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR_CXX14 mat(
47 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR_CXX14 mat(
55 typename X1, typename Y1, typename Z1,
56 typename X2, typename Y2, typename Z2,
57 typename X3, typename Y3, typename Z3>
58 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR_CXX14 mat(
63 template<typename V1, typename V2, typename V3>
64 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR_CXX14 mat(
65 vec<3, V1, Q> const& v1,
66 vec<3, V2, Q> const& v2,
67 vec<3, V3, Q> const& v3);
71 template<typename U, qualifier P>
72 GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR_CTOR_CXX14 mat(mat<3, 3, U, P> const& m);
74 GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR_CTOR_CXX14 mat(mat<2, 2, T, Q> const& x);
75 GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR_CTOR_CXX14 mat(mat<4, 4, T, Q> const& x);
76 GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR_CTOR_CXX14 mat(mat<2, 3, T, Q> const& x);
77 GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR_CTOR_CXX14 mat(mat<3, 2, T, Q> const& x);
78 GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR_CTOR_CXX14 mat(mat<2, 4, T, Q> const& x);
79 GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR_CTOR_CXX14 mat(mat<4, 2, T, Q> const& x);
80 GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR_CTOR_CXX14 mat(mat<3, 4, T, Q> const& x);
81 GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR_CTOR_CXX14 mat(mat<4, 3, T, Q> const& x);
85 GLM_FUNC_DECL GLM_CONSTEXPR_CXX14 mat<3, 3, T, Q> & operator=(mat<3, 3, T, Q> const& m) GLM_DEFAULT;
88 GLM_FUNC_DECL GLM_CONSTEXPR_CXX14 mat<3, 3, T, Q> & operator=(mat<3, 3, U, Q> const& m);
90 GLM_FUNC_DECL mat<3, 3, T, Q> & operator+=(U s);
92 GLM_FUNC_DECL mat<3, 3, T, Q> & operator+=(mat<3, 3, U, Q> const& m);
94 GLM_FUNC_DECL mat<3, 3, T, Q> & operator-=(U s);
96 GLM_FUNC_DECL mat<3, 3, T, Q> & operator-=(mat<3, 3, U, Q> const& m);
98 GLM_FUNC_DECL mat<3, 3, T, Q> & operator*=(U s);
100 GLM_FUNC_DECL mat<3, 3, T, Q> & operator*=(mat<3, 3, U, Q> const& m);
102 GLM_FUNC_DECL mat<3, 3, T, Q> & operator/=(U s);
104 GLM_FUNC_DECL mat<3, 3, T, Q> & operator/=(mat<3, 3, U, Q> const& m);
108 GLM_FUNC_DECL mat<3, 3, T, Q> & operator++();
109 GLM_FUNC_DECL mat<3, 3, T, Q> & operator--();
110 GLM_FUNC_DECL mat<3, 3, T, Q> operator++(
int);
111 GLM_FUNC_DECL mat<3, 3, T, Q> operator--(
int);
116 template<typename T, qualifier Q>
117 GLM_FUNC_DECL mat<3, 3, T, Q> operator+(mat<3, 3, T, Q> const& m);
119 template<typename T, qualifier Q>
120 GLM_FUNC_DECL mat<3, 3, T, Q> operator-(mat<3, 3, T, Q> const& m);
124 template<typename T, qualifier Q>
125 GLM_FUNC_DECL mat<3, 3, T, Q> operator+(mat<3, 3, T, Q> const& m, T scalar);
127 template<typename T, qualifier Q>
128 GLM_FUNC_DECL mat<3, 3, T, Q> operator+(T scalar, mat<3, 3, T, Q> const& m);
130 template<typename T, qualifier Q>
131 GLM_FUNC_DECL mat<3, 3, T, Q> operator+(mat<3, 3, T, Q> const& m1, mat<3, 3, T, Q> const& m2);
133 template<typename T, qualifier Q>
134 GLM_FUNC_DECL mat<3, 3, T, Q> operator-(mat<3, 3, T, Q> const& m, T scalar);
136 template<typename T, qualifier Q>
137 GLM_FUNC_DECL mat<3, 3, T, Q> operator-(T scalar, mat<3, 3, T, Q> const& m);
139 template<typename T, qualifier Q>
140 GLM_FUNC_DECL mat<3, 3, T, Q> operator-(mat<3, 3, T, Q> const& m1, mat<3, 3, T, Q> const& m2);
142 template<typename T, qualifier Q>
143 GLM_FUNC_DECL mat<3, 3, T, Q> operator*(mat<3, 3, T, Q> const& m, T scalar);
145 template<typename T, qualifier Q>
146 GLM_FUNC_DECL mat<3, 3, T, Q> operator*(T scalar, mat<3, 3, T, Q> const& m);
148 template<typename T, qualifier Q>
149 GLM_FUNC_DECL typename mat<3, 3, T, Q>::col_type operator*(mat<3, 3, T, Q> const& m, typename mat<3, 3, T, Q>::row_type const& v);
151 template<typename T, qualifier Q>
152 GLM_FUNC_DECL typename mat<3, 3, T, Q>::row_type operator*(typename mat<3, 3, T, Q>::col_type const& v, mat<3, 3, T, Q> const& m);
154 template<typename T, qualifier Q>
155 GLM_FUNC_DECL mat<3, 3, T, Q> operator*(mat<3, 3, T, Q> const& m1, mat<3, 3, T, Q> const& m2);
157 template<typename T, qualifier Q>
158 GLM_FUNC_DECL mat<2, 3, T, Q> operator*(mat<3, 3, T, Q> const& m1, mat<2, 3, T, Q> const& m2);
160 template<typename T, qualifier Q>
161 GLM_FUNC_DECL mat<4, 3, T, Q> operator*(mat<3, 3, T, Q> const& m1, mat<4, 3, T, Q> const& m2);
163 template<typename T, qualifier Q>
164 GLM_FUNC_DECL mat<3, 3, T, Q> operator/(mat<3, 3, T, Q> const& m, T scalar);
166 template<typename T, qualifier Q>
167 GLM_FUNC_DECL mat<3, 3, T, Q> operator/(T scalar, mat<3, 3, T, Q> const& m);
169 template<typename T, qualifier Q>
170 GLM_FUNC_DECL typename mat<3, 3, T, Q>::col_type operator/(mat<3, 3, T, Q> const& m, typename mat<3, 3, T, Q>::row_type const& v);
172 template<typename T, qualifier Q>
173 GLM_FUNC_DECL typename mat<3, 3, T, Q>::row_type operator/(typename mat<3, 3, T, Q>::col_type const& v, mat<3, 3, T, Q> const& m);
175 template<typename T, qualifier Q>
176 GLM_FUNC_DECL mat<3, 3, T, Q> operator/(mat<3, 3, T, Q> const& m1, mat<3, 3, T, Q> const& m2);
180 template<typename T, qualifier Q>
181 GLM_FUNC_DECL
bool operator==(mat<3, 3, T, Q> const& m1, mat<3, 3, T, Q> const& m2);
183 template<typename T, qualifier Q>
184 GLM_FUNC_DECL
bool operator!=(mat<3, 3, T, Q> const& m1, mat<3, 3, T, Q> const& m2);
187 #ifndef GLM_EXTERNAL_TEMPLATE
188 #include "type_mat3x3.inl"
GLM_FUNC_DECL T length(vec< L, T, Q > const &x)
Returns the length of x, i.e., sqrt(x * x).