25
25
<th width="100%" align="center">GIMP Math Library Reference Manual</th>
26
26
<td><a accesskey="n" href="libgimpmath-GimpVector.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
28
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2610234" class="shortcut">Top</a>
30
<a href="#id2593502" class="shortcut">Description</a></nobr></td></tr>
28
<tr><td colspan="5" class="shortcuts"><nobr><a href="#libgimpmath-GimpMatrix.synopsis" class="shortcut">Top</a>
30
<a href="#libgimpmath-GimpMatrix.description" class="shortcut">Description</a></nobr></td></tr>
32
32
<div class="refentry" lang="en">
33
33
<a name="libgimpmath-GimpMatrix"></a><div class="titlepage"></div>
34
34
<div class="refnamediv"><table width="100%"><tr>
37
<a name="id2610234"></a><span class="refentrytitle">GimpMatrix</span>
39
<p>GimpMatrix — Utilities to set up and manipulate 3x3 transformation matrices.</p>
36
<h2><span class="refentrytitle"><a name="libgimpmath-GimpMatrix.top_of_page"></a>GimpMatrix</span></h2>
37
<p>GimpMatrix — Utilities to set up and manipulate 3x3 transformation matrices.</p>
41
39
<td valign="top" align="right"></td>
42
40
</tr></table></div>
43
41
<div class="refsynopsisdiv">
42
<a name="libgimpmath-GimpMatrix.synopsis"></a><h2>Synopsis</h2>
45
43
<pre class="synopsis">
49
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix2">GimpMatrix2</a>;
50
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a>;
51
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix4">GimpMatrix4</a>;
52
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix2-identity">gimp_matrix2_identity</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix2">GimpMatrix2</a> *matrix);
53
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix2-mult">gimp_matrix2_mult</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix2">GimpMatrix2</a> *matrix1,
54
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix2">GimpMatrix2</a> *matrix2);
55
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-identity">gimp_matrix3_identity</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);
56
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-mult">gimp_matrix3_mult</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix1,
57
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix2);
58
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-translate">gimp_matrix3_translate</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
60
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
63
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
65
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-scale">gimp_matrix3_scale</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
67
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
70
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
72
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-rotate">gimp_matrix3_rotate</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
74
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
76
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-xshear">gimp_matrix3_xshear</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
78
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
80
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-yshear">gimp_matrix3_yshear</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
82
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
84
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-affine">gimp_matrix3_affine</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
86
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
89
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
92
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
95
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
98
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
101
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
103
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-transform-point">gimp_matrix3_transform_point</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
105
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
108
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
111
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
114
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
117
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
118
>gdouble</a> <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-determinant">gimp_matrix3_determinant</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);
119
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-invert">gimp_matrix3_invert</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);
121
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
122
>gboolean</a> <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-is-identity">gimp_matrix3_is_identity</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);
124
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
125
>gboolean</a> <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-is-diagonal">gimp_matrix3_is_diagonal</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);
127
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
128
>gboolean</a> <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-is-affine">gimp_matrix3_is_affine</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);
130
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
131
>gboolean</a> <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-is-simple">gimp_matrix3_is_simple</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);
132
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix4-to-deg">gimp_matrix4_to_deg</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix4">GimpMatrix4</a> *matrix,
134
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
137
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
140
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
142
#define <a class="link" href="libgimpmath-GimpMatrix.html#GIMP-TYPE-MATRIX2:CAPS">GIMP_TYPE_MATRIX2</a>
143
#define <a class="link" href="libgimpmath-GimpMatrix.html#GIMP-TYPE-PARAM-MATRIX2:CAPS">GIMP_TYPE_PARAM_MATRIX2</a>
144
#define <a class="link" href="libgimpmath-GimpMatrix.html#GIMP-IS-PARAM-SPEC-MATRIX2:CAPS">GIMP_IS_PARAM_SPEC_MATRIX2</a> (pspec)
146
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamSpec"
147
>GParamSpec</a>* <a class="link" href="libgimpmath-GimpMatrix.html#gimp-param-spec-matrix2">gimp_param_spec_matrix2</a> (const <a
148
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
151
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
154
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
156
const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix2">GimpMatrix2</a> *default_value,
158
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamFlags"
159
>GParamFlags</a> flags);
160
#define <a class="link" href="libgimpmath-GimpMatrix.html#GIMP-VALUE-HOLDS-MATRIX2:CAPS">GIMP_VALUE_HOLDS_MATRIX2</a> (value)
44
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix2" title="GimpMatrix2">GimpMatrix2</a>;
45
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a>;
46
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix4" title="GimpMatrix4">GimpMatrix4</a>;
47
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix2-identity" title="gimp_matrix2_identity ()">gimp_matrix2_identity</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix2" title="GimpMatrix2">GimpMatrix2</a> *matrix);
48
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix2-mult" title="gimp_matrix2_mult ()">gimp_matrix2_mult</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix2" title="GimpMatrix2">GimpMatrix2</a> *matrix1,
49
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix2" title="GimpMatrix2">GimpMatrix2</a> *matrix2);
50
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-identity" title="gimp_matrix3_identity ()">gimp_matrix3_identity</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix);
51
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-mult" title="gimp_matrix3_mult ()">gimp_matrix3_mult</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix1,
52
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix2);
53
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-translate" title="gimp_matrix3_translate ()">gimp_matrix3_translate</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix,
56
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-scale" title="gimp_matrix3_scale ()">gimp_matrix3_scale</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix,
59
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-rotate" title="gimp_matrix3_rotate ()">gimp_matrix3_rotate</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix,
61
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-xshear" title="gimp_matrix3_xshear ()">gimp_matrix3_xshear</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix,
63
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-yshear" title="gimp_matrix3_yshear ()">gimp_matrix3_yshear</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix,
65
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-affine" title="gimp_matrix3_affine ()">gimp_matrix3_affine</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix,
72
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-transform-point" title="gimp_matrix3_transform_point ()">gimp_matrix3_transform_point</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix,
77
gdouble <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-determinant" title="gimp_matrix3_determinant ()">gimp_matrix3_determinant</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix);
78
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-invert" title="gimp_matrix3_invert ()">gimp_matrix3_invert</a> (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix);
79
gboolean <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-is-identity" title="gimp_matrix3_is_identity ()">gimp_matrix3_is_identity</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix);
80
gboolean <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-is-diagonal" title="gimp_matrix3_is_diagonal ()">gimp_matrix3_is_diagonal</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix);
81
gboolean <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-is-affine" title="gimp_matrix3_is_affine ()">gimp_matrix3_is_affine</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix);
82
gboolean <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix3-is-simple" title="gimp_matrix3_is_simple ()">gimp_matrix3_is_simple</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix);
83
void <a class="link" href="libgimpmath-GimpMatrix.html#gimp-matrix4-to-deg" title="gimp_matrix4_to_deg ()">gimp_matrix4_to_deg</a> (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix4" title="GimpMatrix4">GimpMatrix4</a> *matrix,
87
#define <a class="link" href="libgimpmath-GimpMatrix.html#GIMP-TYPE-MATRIX2:CAPS" title="GIMP_TYPE_MATRIX2">GIMP_TYPE_MATRIX2</a>
88
#define <a class="link" href="libgimpmath-GimpMatrix.html#GIMP-TYPE-PARAM-MATRIX2:CAPS" title="GIMP_TYPE_PARAM_MATRIX2">GIMP_TYPE_PARAM_MATRIX2</a>
89
#define <a class="link" href="libgimpmath-GimpMatrix.html#GIMP-IS-PARAM-SPEC-MATRIX2:CAPS" title="GIMP_IS_PARAM_SPEC_MATRIX2()">GIMP_IS_PARAM_SPEC_MATRIX2</a> (pspec)
90
GParamSpec* <a class="link" href="libgimpmath-GimpMatrix.html#gimp-param-spec-matrix2" title="gimp_param_spec_matrix2 ()">gimp_param_spec_matrix2</a> (const gchar *name,
93
const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix2" title="GimpMatrix2">GimpMatrix2</a> *default_value,
95
#define <a class="link" href="libgimpmath-GimpMatrix.html#GIMP-VALUE-HOLDS-MATRIX2:CAPS" title="GIMP_VALUE_HOLDS_MATRIX2()">GIMP_VALUE_HOLDS_MATRIX2</a> (value)
164
98
<div class="refsect1" lang="en">
165
<a name="id2593502"></a><h2>Description</h2>
99
<a name="libgimpmath-GimpMatrix.description"></a><h2>Description</h2>
167
101
When doing image manipulation you will often need 3x3 transformation
168
102
matrices that define translation, rotation, scaling, shearing and
216
147
<div class="refsect2" lang="en">
217
<a name="id2532649"></a><h3>
218
<a name="gimp-matrix2-identity"></a>gimp_matrix2_identity ()</h3>
219
<a class="indexterm" name="id2532661"></a><pre class="programlisting">void gimp_matrix2_identity (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix2">GimpMatrix2</a> *matrix);</pre>
221
Sets the matrix to the identity matrix.</p>
225
<div class="variablelist"><table border="0">
226
<col align="left" valign="top">
228
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
235
<div class="refsect2" lang="en">
236
<a name="id2532710"></a><h3>
237
<a name="gimp-matrix2-mult"></a>gimp_matrix2_mult ()</h3>
238
<a class="indexterm" name="id2532722"></a><pre class="programlisting">void gimp_matrix2_mult (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix2">GimpMatrix2</a> *matrix1,
239
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix2">GimpMatrix2</a> *matrix2);</pre>
241
Multiplies two matrices and puts the result into the second one.</p>
245
<div class="variablelist"><table border="0">
246
<col align="left" valign="top">
249
<td><p><span class="term"><em class="parameter"><code>matrix1</code></em> :</span></p></td>
250
<td> The first input matrix.
254
<td><p><span class="term"><em class="parameter"><code>matrix2</code></em> :</span></p></td>
255
<td> The second input matrix which will be overwritten by the result.
262
<div class="refsect2" lang="en">
263
<a name="id2532795"></a><h3>
264
<a name="gimp-matrix3-identity"></a>gimp_matrix3_identity ()</h3>
265
<a class="indexterm" name="id2532806"></a><pre class="programlisting">void gimp_matrix3_identity (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);</pre>
267
Sets the matrix to the identity matrix.</p>
271
<div class="variablelist"><table border="0">
272
<col align="left" valign="top">
274
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
281
<div class="refsect2" lang="en">
282
<a name="id2617540"></a><h3>
283
<a name="gimp-matrix3-mult"></a>gimp_matrix3_mult ()</h3>
284
<a class="indexterm" name="id2617551"></a><pre class="programlisting">void gimp_matrix3_mult (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix1,
285
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix2);</pre>
287
Multiplies two matrices and puts the result into the second one.</p>
291
<div class="variablelist"><table border="0">
292
<col align="left" valign="top">
295
<td><p><span class="term"><em class="parameter"><code>matrix1</code></em> :</span></p></td>
296
<td> The first input matrix.
300
<td><p><span class="term"><em class="parameter"><code>matrix2</code></em> :</span></p></td>
301
<td> The second input matrix which will be overwritten by the result.
308
<div class="refsect2" lang="en">
309
<a name="id2617616"></a><h3>
310
<a name="gimp-matrix3-translate"></a>gimp_matrix3_translate ()</h3>
311
<a class="indexterm" name="id2617627"></a><pre class="programlisting">void gimp_matrix3_translate (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
313
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
316
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
317
>gdouble</a> y);</pre>
148
<a name="gimp-matrix2-identity"></a><h3>gimp_matrix2_identity ()</h3>
149
<pre class="programlisting">void gimp_matrix2_identity (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix2" title="GimpMatrix2">GimpMatrix2</a> *matrix);</pre>
151
Sets the matrix to the identity matrix.</p>
155
<div class="variablelist"><table border="0">
156
<col align="left" valign="top">
158
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
165
<div class="refsect2" lang="en">
166
<a name="gimp-matrix2-mult"></a><h3>gimp_matrix2_mult ()</h3>
167
<pre class="programlisting">void gimp_matrix2_mult (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix2" title="GimpMatrix2">GimpMatrix2</a> *matrix1,
168
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix2" title="GimpMatrix2">GimpMatrix2</a> *matrix2);</pre>
170
Multiplies two matrices and puts the result into the second one.</p>
174
<div class="variablelist"><table border="0">
175
<col align="left" valign="top">
178
<td><p><span class="term"><em class="parameter"><code>matrix1</code></em> :</span></p></td>
179
<td> The first input matrix.
183
<td><p><span class="term"><em class="parameter"><code>matrix2</code></em> :</span></p></td>
184
<td> The second input matrix which will be overwritten by the result.
191
<div class="refsect2" lang="en">
192
<a name="gimp-matrix3-identity"></a><h3>gimp_matrix3_identity ()</h3>
193
<pre class="programlisting">void gimp_matrix3_identity (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix);</pre>
195
Sets the matrix to the identity matrix.</p>
199
<div class="variablelist"><table border="0">
200
<col align="left" valign="top">
202
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
209
<div class="refsect2" lang="en">
210
<a name="gimp-matrix3-mult"></a><h3>gimp_matrix3_mult ()</h3>
211
<pre class="programlisting">void gimp_matrix3_mult (const <a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix1,
212
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix2);</pre>
214
Multiplies two matrices and puts the result into the second one.</p>
218
<div class="variablelist"><table border="0">
219
<col align="left" valign="top">
222
<td><p><span class="term"><em class="parameter"><code>matrix1</code></em> :</span></p></td>
223
<td> The first input matrix.
227
<td><p><span class="term"><em class="parameter"><code>matrix2</code></em> :</span></p></td>
228
<td> The second input matrix which will be overwritten by the result.
235
<div class="refsect2" lang="en">
236
<a name="gimp-matrix3-translate"></a><h3>gimp_matrix3_translate ()</h3>
237
<pre class="programlisting">void gimp_matrix3_translate (<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3">GimpMatrix3</a> *matrix,
319
241
Translates the matrix by x and y.</p>