14 template <
typename T, precision P = defaultp>
17 typedef tvec3<T, P> col_type;
18 typedef tvec3<T, P> row_type;
19 typedef tmat3x3<T, P> type;
20 typedef tmat3x3<T, P> transpose_type;
29 GLM_FUNC_DECL tmat3x3() GLM_DEFAULT_CTOR;
30 GLM_FUNC_DECL tmat3x3(tmat3x3<T, P> const & m) GLM_DEFAULT;
31 template <precision Q>
32 GLM_FUNC_DECL tmat3x3(tmat3x3<T, Q> const & m);
34 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR explicit tmat3x3(ctor);
35 GLM_FUNC_DECL explicit tmat3x3(T scalar);
36 GLM_FUNC_DECL tmat3x3(
40 GLM_FUNC_DECL tmat3x3(
48 typename X1, typename Y1, typename Z1,
49 typename X2, typename Y2, typename Z2,
50 typename X3, typename Y3, typename Z3>
51 GLM_FUNC_DECL tmat3x3(
56 template <typename V1, typename V2, typename V3>
57 GLM_FUNC_DECL tmat3x3(
58 tvec3<V1, P> const & v1,
59 tvec3<V2, P> const & v2,
60 tvec3<V3, P> const & v3);
64 template <typename U, precision Q>
65 GLM_FUNC_DECL GLM_EXPLICIT tmat3x3(tmat3x3<U, Q> const & m);
67 GLM_FUNC_DECL GLM_EXPLICIT tmat3x3(tmat2x2<T, P> const & x);
68 GLM_FUNC_DECL GLM_EXPLICIT tmat3x3(tmat4x4<T, P> const & x);
69 GLM_FUNC_DECL GLM_EXPLICIT tmat3x3(tmat2x3<T, P> const & x);
70 GLM_FUNC_DECL GLM_EXPLICIT tmat3x3(tmat3x2<T, P> const & x);
71 GLM_FUNC_DECL GLM_EXPLICIT tmat3x3(tmat2x4<T, P> const & x);
72 GLM_FUNC_DECL GLM_EXPLICIT tmat3x3(tmat4x2<T, P> const & x);
73 GLM_FUNC_DECL GLM_EXPLICIT tmat3x3(tmat3x4<T, P> const & x);
74 GLM_FUNC_DECL GLM_EXPLICIT tmat3x3(tmat4x3<T, P> const & x);
78 typedef length_t length_type;
79 GLM_FUNC_DECL static length_type
length(){
return 3;}
81 GLM_FUNC_DECL col_type & operator[](length_type i);
82 GLM_FUNC_DECL col_type
const & operator[](length_type i)
const;
86 GLM_FUNC_DECL tmat3x3<T, P> & operator=(tmat3x3<T, P>
const & m) GLM_DEFAULT;
89 GLM_FUNC_DECL tmat3x3<T, P> & operator=(tmat3x3<U, P>
const & m);
91 GLM_FUNC_DECL tmat3x3<T, P> & operator+=(U s);
93 GLM_FUNC_DECL tmat3x3<T, P> & operator+=(tmat3x3<U, P>
const & m);
95 GLM_FUNC_DECL tmat3x3<T, P> & operator-=(U s);
97 GLM_FUNC_DECL tmat3x3<T, P> & operator-=(tmat3x3<U, P>
const & m);
99 GLM_FUNC_DECL tmat3x3<T, P> & operator*=(U s);
100 template <
typename U>
101 GLM_FUNC_DECL tmat3x3<T, P> & operator*=(tmat3x3<U, P>
const & m);
102 template <
typename U>
103 GLM_FUNC_DECL tmat3x3<T, P> & operator/=(U s);
104 template <
typename U>
105 GLM_FUNC_DECL tmat3x3<T, P> & operator/=(tmat3x3<U, P>
const & m);
109 GLM_FUNC_DECL tmat3x3<T, P> & operator++();
110 GLM_FUNC_DECL tmat3x3<T, P> & operator--();
111 GLM_FUNC_DECL tmat3x3<T, P> operator++(
int);
112 GLM_FUNC_DECL tmat3x3<T, P> operator--(
int);
117 template <
typename T, precision P>
118 GLM_FUNC_DECL tmat3x3<T, P> operator+(tmat3x3<T, P>
const & m);
120 template <
typename T, precision P>
121 GLM_FUNC_DECL tmat3x3<T, P> operator-(tmat3x3<T, P>
const & m);
125 template <
typename T, precision P>
126 GLM_FUNC_DECL tmat3x3<T, P> operator+(tmat3x3<T, P>
const & m, T scalar);
128 template <
typename T, precision P>
129 GLM_FUNC_DECL tmat3x3<T, P> operator+(T scalar, tmat3x3<T, P>
const & m);
131 template <
typename T, precision P>
132 GLM_FUNC_DECL tmat3x3<T, P> operator+(tmat3x3<T, P>
const & m1, tmat3x3<T, P>
const & m2);
134 template <
typename T, precision P>
135 GLM_FUNC_DECL tmat3x3<T, P> operator-(tmat3x3<T, P>
const & m, T scalar);
137 template <
typename T, precision P>
138 GLM_FUNC_DECL tmat3x3<T, P> operator-(T scalar, tmat3x3<T, P>
const & m);
140 template <
typename T, precision P>
141 GLM_FUNC_DECL tmat3x3<T, P> operator-(tmat3x3<T, P>
const & m1, tmat3x3<T, P>
const & m2);
143 template <
typename T, precision P>
144 GLM_FUNC_DECL tmat3x3<T, P> operator*(tmat3x3<T, P>
const & m, T scalar);
146 template <
typename T, precision P>
147 GLM_FUNC_DECL tmat3x3<T, P> operator*(T scalar, tmat3x3<T, P>
const & m);
149 template <
typename T, precision P>
150 GLM_FUNC_DECL
typename tmat3x3<T, P>::col_type operator*(tmat3x3<T, P>
const & m,
typename tmat3x3<T, P>::row_type
const & v);
152 template <
typename T, precision P>
153 GLM_FUNC_DECL
typename tmat3x3<T, P>::row_type operator*(
typename tmat3x3<T, P>::col_type
const & v, tmat3x3<T, P>
const & m);
155 template <
typename T, precision P>
156 GLM_FUNC_DECL tmat3x3<T, P> operator*(tmat3x3<T, P>
const & m1, tmat3x3<T, P>
const & m2);
158 template <
typename T, precision P>
159 GLM_FUNC_DECL tmat2x3<T, P> operator*(tmat3x3<T, P>
const & m1, tmat2x3<T, P>
const & m2);
161 template <
typename T, precision P>
162 GLM_FUNC_DECL tmat4x3<T, P> operator*(tmat3x3<T, P>
const & m1, tmat4x3<T, P>
const & m2);
164 template <
typename T, precision P>
165 GLM_FUNC_DECL tmat3x3<T, P> operator/(tmat3x3<T, P>
const & m, T scalar);
167 template <
typename T, precision P>
168 GLM_FUNC_DECL tmat3x3<T, P> operator/(T scalar, tmat3x3<T, P>
const & m);
170 template <
typename T, precision P>
171 GLM_FUNC_DECL
typename tmat3x3<T, P>::col_type operator/(tmat3x3<T, P>
const & m,
typename tmat3x3<T, P>::row_type
const & v);
173 template <
typename T, precision P>
174 GLM_FUNC_DECL
typename tmat3x3<T, P>::row_type operator/(
typename tmat3x3<T, P>::col_type
const & v, tmat3x3<T, P>
const & m);
176 template <
typename T, precision P>
177 GLM_FUNC_DECL tmat3x3<T, P> operator/(tmat3x3<T, P>
const & m1, tmat3x3<T, P>
const & m2);
181 template <
typename T, precision P>
182 GLM_FUNC_DECL
bool operator==(tmat3x3<T, P>
const & m1, tmat3x3<T, P>
const & m2);
184 template <
typename T, precision P>
185 GLM_FUNC_DECL
bool operator!=(tmat3x3<T, P>
const & m1, tmat3x3<T, P>
const & m2);
188 #ifndef GLM_EXTERNAL_TEMPLATE
189 #include "type_mat3x3.inl"
GLM_FUNC_DECL T length(vecType< T, P > const &x)
Returns the length of x, i.e., sqrt(x * x).