Imported Upstream version 2.2.14

This commit is contained in:
Ari Pollak
2010-08-11 01:17:12 -04:00
parent 70ad8213cf
commit a2f097051e
490 changed files with 35329 additions and 58398 deletions

View File

@ -1,50 +1,42 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GIMP Math Library Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
<link rel="start" href="index.html" title="GIMP Math Library Reference Manual">
<link rel="next" href="libgimpmath.html" title="Part&#160;I.&#160;GIMP Math Library">
<meta name="generator" content="GTK-Doc V1.4 (XML mode)">
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="libgimpmath.html" title="Part&#160;I.&#160;GIMP Math Library">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="book" lang="en">
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="book" lang="en">
<div class="titlepage">
<div>
<div><table class="navigation" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">GIMP Math Library Reference Manual</p></th></tr></table></div>
<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">GIMP Math Library Reference Manual</p></th></tr></table></div>
<div><p class="releaseinfo">
for GIMP 2.2.9
for GIMP 2.2.14
</p></div>
</div>
<hr>
</div>
<div class="toc">
<p><b>Table of Contents</b></p>
<dl>
<div class="toc"><dl>
<dt><span class="part"><a href="libgimpmath.html">I. GIMP Math Library</a></span></dt>
<dd><dl>
<dt>
<span class="refentrytitle"><a href="libgimpmath-GimpMath.html">GimpMath</a></span><span class="refpurpose"> - Mathematical definitions and macros.</span>
<span class="refentrytitle"><a href="libgimpmath-GimpMath.html">GimpMath</a></span><span class="refpurpose"> &#8212; Mathematical definitions and macros.</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libgimpmath-GimpMatrix.html">GimpMatrix</a></span><span class="refpurpose"> - Utilities to set up and manipulate 3x3 transformation matrices.</span>
<span class="refentrytitle"><a href="libgimpmath-GimpMatrix.html">GimpMatrix</a></span><span class="refpurpose"> &#8212; Utilities to set up and manipulate 3x3 transformation matrices.</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libgimpmath-GimpVector.html">GimpVector</a></span><span class="refpurpose"> - Utilities to set up and manipulate vectors.</span>
<span class="refentrytitle"><a href="libgimpmath-GimpVector.html">GimpVector</a></span><span class="refpurpose"> &#8212; Utilities to set up and manipulate vectors.</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libgimpmath-GimpMD5.html">GimpMD5</a></span><span class="refpurpose"> - the MD5 message-digest algorithm</span>
<span class="refentrytitle"><a href="libgimpmath-GimpMD5.html">GimpMD5</a></span><span class="refpurpose"> &#8212; the MD5 message-digest algorithm</span>
</dt>
</dl></dd>
</dl>
</div>
</div>
<table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle">
<td align="left"></td>
<td align="right"><a accesskey="n" href="libgimpmath.html"><b>Part&#160;I.&#160;GIMP Math Library&#160;&gt;&gt;</b></a></td>
</tr></table>
</body>
</dl></div>
</div></body>
</html>

View File

@ -1,27 +1,36 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GimpMD5</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
<link rel="start" href="index.html" title="GIMP Math Library Reference Manual">
<link rel="up" href="libgimpmath.html" title="Part&#160;I.&#160;GIMP Math Library">
<link rel="prev" href="libgimpmath-GimpVector.html" title="GimpVector">
<meta name="generator" content="GTK-Doc V1.4 (XML mode)">
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="libgimpmath.html" title="Part&#160;I.&#160;GIMP Math Library">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libgimpmath-GimpVector.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="libgimpmath.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIMP Math Library Reference Manual</th>
</tr></table>
<td>&#160;</td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2572141" class="shortcut">Top</a>
&#160;|&#160;
<a href="#id2582255" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="libgimpmath-GimpMD5"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle">GimpMD5</span></h2>
<h2>
<a name="id2572141"></a><span class="refentrytitle">GimpMD5</span>
</h2>
<p>GimpMD5 &#8212; the MD5 message-digest algorithm</p>
</td>
<td valign="top" align="right"></td>
@ -38,17 +47,17 @@ void <a href="libgimpmath-GimpMD5.html#gimp-md5-get-digest">gimp_md5_get_
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2532299"></a><h2>Description</h2>
<a name="id2582255"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2541001"></a><h2>Details</h2>
<a name="id2570776"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2549865"></a><h3>
<a name="id2570787"></a><h3>
<a name="gimp-md5-get-digest"></a>gimp_md5_get_digest ()</h3>
<a class="indexterm" name="id2549875"></a><pre class="programlisting">void gimp_md5_get_digest (const gchar *buffer,
<a class="indexterm" name="id2570799"></a><pre class="programlisting">void gimp_md5_get_digest (const gchar *buffer,
gint buffer_size,
guchar digest[16]);</pre>
<p>
@ -69,20 +78,17 @@ digest. For more information see RFC 1321.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>buffer</code></em>&#160;:</span></td>
<td> byte buffer
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer_size</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>buffer_size</code></em>&#160;:</span></td>
<td> buffer size (in bytes) or -1 if <em class="parameter"><code>buffer</code></em> is nul-terminated.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>digest</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>digest</code></em>&#160;:</span></td>
<td> 16 bytes buffer receiving the hash code.
</td>
</tr>
@ -91,9 +97,5 @@ digest. For more information see RFC 1321.</p>
</div>
</div>
</div>
<table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle">
<td align="left"><a accesskey="p" href="libgimpmath-GimpVector.html"><b>&lt;&lt;&#160;GimpVector</b></a></td>
<td align="right"></td>
</tr></table>
</body>
</html>

View File

@ -1,29 +1,37 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GimpMath</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
<link rel="start" href="index.html" title="GIMP Math Library Reference Manual">
<link rel="up" href="libgimpmath.html" title="Part&#160;I.&#160;GIMP Math Library">
<link rel="prev" href="libgimpmath.html" title="Part&#160;I.&#160;GIMP Math Library">
<link rel="next" href="libgimpmath-GimpMatrix.html" title="GimpMatrix">
<meta name="generator" content="GTK-Doc V1.4 (XML mode)">
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="libgimpmath.html" title="Part&#160;I.&#160;GIMP Math Library">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libgimpmath.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="libgimpmath.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIMP Math Library Reference Manual</th>
<td><a accesskey="n" href="libgimpmath-GimpMatrix.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2583640" class="shortcut">Top</a>
&#160;|&#160;
<a href="#id2555873" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="libgimpmath-GimpMath"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle">GimpMath</span></h2>
<h2>
<a name="id2583640"></a><span class="refentrytitle">GimpMath</span>
</h2>
<p>GimpMath &#8212; Mathematical definitions and macros.</p>
</td>
<td valign="top" align="right"></td>
@ -44,18 +52,18 @@
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2469573"></a><h2>Description</h2>
<a name="id2555873"></a><h2>Description</h2>
<p>
Mathematical definitions and macros. These macros should be used
rather than the ones from math.h for enhanced portability.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2469586"></a><h2>Details</h2>
<a name="id2555891"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2469592"></a><h3>
<a name="id2555902"></a><h3>
<a name="RINT:CAPS"></a>RINT()</h3>
<a class="indexterm" name="id2469602"></a><pre class="programlisting">#define RINT(x)</pre>
<a class="indexterm" name="id2555914"></a><pre class="programlisting">#define RINT(x)</pre>
<p>
This macro rounds its argument <em class="parameter"><code>x</code></em> to an integer value in floating point
format.
@ -63,8 +71,7 @@ format.
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td>the value to be rounded.
@ -74,9 +81,9 @@ format.
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2469643"></a><h3>
<a name="id2555955"></a><h3>
<a name="ROUND:CAPS"></a>ROUND()</h3>
<a class="indexterm" name="id2469652"></a><pre class="programlisting">#define ROUND(x) ((int) ((x) + 0.5))
<a class="indexterm" name="id2555967"></a><pre class="programlisting">#define ROUND(x) ((int) ((x) + 0.5))
</pre>
<p>
This macro rounds its argument <em class="parameter"><code>x</code></em> to the nearest integer.
@ -84,8 +91,7 @@ This macro rounds its argument <em class="parameter"><code>x</code></em> to the
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td>the value to be rounded.
@ -95,9 +101,9 @@ This macro rounds its argument <em class="parameter"><code>x</code></em> to the
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2469692"></a><h3>
<a name="id2514863"></a><h3>
<a name="SQR:CAPS"></a>SQR()</h3>
<a class="indexterm" name="id2469702"></a><pre class="programlisting">#define SQR(x) ((x) * (x))
<a class="indexterm" name="id2514875"></a><pre class="programlisting">#define SQR(x) ((x) * (x))
</pre>
<p>
This macro squares its argument <em class="parameter"><code>x</code></em>.
@ -105,8 +111,7 @@ This macro squares its argument <em class="parameter"><code>x</code></em>.
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td>the value to be squared.
@ -116,9 +121,9 @@ This macro squares its argument <em class="parameter"><code>x</code></em>.
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2492127"></a><h3>
<a name="id2514915"></a><h3>
<a name="MAX255:CAPS"></a>MAX255()</h3>
<a class="indexterm" name="id2492136"></a><pre class="programlisting">#define MAX255(a) ((a) | (((a) &amp; 256) - (((a) &amp; 256) &gt;&gt; 8)))
<a class="indexterm" name="id2514927"></a><pre class="programlisting">#define MAX255(a) ((a) | (((a) &amp; 256) - (((a) &amp; 256) &gt;&gt; 8)))
</pre>
<p>
This macro limits it argument <em class="parameter"><code>a</code></em>, an (0-511) int, to 255.
@ -126,8 +131,7 @@ This macro limits it argument <em class="parameter"><code>a</code></em>, an (0-5
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>a</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>a</code></em>&#160;:</span></td>
<td>the value to be limited.
@ -137,9 +141,9 @@ This macro limits it argument <em class="parameter"><code>a</code></em>, an (0-5
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2492176"></a><h3>
<a name="id2514967"></a><h3>
<a name="CLAMP0255:CAPS"></a>CLAMP0255()</h3>
<a class="indexterm" name="id2492186"></a><pre class="programlisting">#define CLAMP0255(a) CLAMP(a,0,255)
<a class="indexterm" name="id2532797"></a><pre class="programlisting">#define CLAMP0255(a) CLAMP(a,0,255)
</pre>
<p>
This macro clamps its argument <em class="parameter"><code>a</code></em>, an int32-range int, between 0 and
@ -148,8 +152,7 @@ This macro clamps its argument <em class="parameter"><code>a</code></em>, an int
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>a</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>a</code></em>&#160;:</span></td>
<td>the value to be clamped.
@ -159,9 +162,9 @@ This macro clamps its argument <em class="parameter"><code>a</code></em>, an int
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2492227"></a><h3>
<a name="id2532837"></a><h3>
<a name="gimp-deg-to-rad"></a>gimp_deg_to_rad()</h3>
<a class="indexterm" name="id2492237"></a><pre class="programlisting">#define gimp_deg_to_rad(angle) ((angle) * (2.0 * G_PI) / 360.0)
<a class="indexterm" name="id2532850"></a><pre class="programlisting">#define gimp_deg_to_rad(angle) ((angle) * (2.0 * G_PI) / 360.0)
</pre>
<p>
This macro converts its argument <em class="parameter"><code>angle</code></em> from degree to radian.
@ -169,8 +172,7 @@ This macro converts its argument <em class="parameter"><code>angle</code></em> f
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>angle</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>angle</code></em>&#160;:</span></td>
<td>the angle to be converted.
@ -180,9 +182,9 @@ This macro converts its argument <em class="parameter"><code>angle</code></em> f
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2470047"></a><h3>
<a name="id2532890"></a><h3>
<a name="gimp-rad-to-deg"></a>gimp_rad_to_deg()</h3>
<a class="indexterm" name="id2470057"></a><pre class="programlisting">#define gimp_rad_to_deg(angle) ((angle) * 360.0 / (2.0 * G_PI))
<a class="indexterm" name="id2532903"></a><pre class="programlisting">#define gimp_rad_to_deg(angle) ((angle) * 360.0 / (2.0 * G_PI))
</pre>
<p>
This macro converts its argument <em class="parameter"><code>angle</code></em> from radian to degree.
@ -190,8 +192,7 @@ This macro converts its argument <em class="parameter"><code>angle</code></em> f
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>angle</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>angle</code></em>&#160;:</span></td>
<td>the angle to be converted.
@ -201,9 +202,5 @@ This macro converts its argument <em class="parameter"><code>angle</code></em> f
</div>
</div>
</div>
<table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle">
<td align="left"><a accesskey="p" href="libgimpmath.html"><b>&lt;&lt;&#160;Part&#160;I.&#160;GIMP Math Library</b></a></td>
<td align="right"><a accesskey="n" href="libgimpmath-GimpMatrix.html"><b>GimpMatrix&#160;&gt;&gt;</b></a></td>
</tr></table>
</body>
</html>

View File

@ -1,29 +1,37 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GimpMatrix</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
<link rel="start" href="index.html" title="GIMP Math Library Reference Manual">
<link rel="up" href="libgimpmath.html" title="Part&#160;I.&#160;GIMP Math Library">
<link rel="prev" href="libgimpmath-GimpMath.html" title="GimpMath">
<link rel="next" href="libgimpmath-GimpVector.html" title="GimpVector">
<meta name="generator" content="GTK-Doc V1.4 (XML mode)">
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="libgimpmath.html" title="Part&#160;I.&#160;GIMP Math Library">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libgimpmath-GimpMath.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="libgimpmath.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIMP Math Library Reference Manual</th>
<td><a accesskey="n" href="libgimpmath-GimpVector.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2572088" class="shortcut">Top</a>
&#160;|&#160;
<a href="#id2570105" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="libgimpmath-GimpMatrix"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle">GimpMatrix</span></h2>
<h2>
<a name="id2572088"></a><span class="refentrytitle">GimpMatrix</span>
</h2>
<p>GimpMatrix &#8212; Utilities to set up and manipulate 3x3 transformation matrices.</p>
</td>
<td valign="top" align="right"></td>
@ -79,7 +87,7 @@ void <a href="libgimpmath-GimpMatrix.html#gimp-matrix4-to-deg">gimp_matri
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2528821"></a><h2>Description</h2>
<a name="id2570105"></a><h2>Description</h2>
<p>
When doing image manipulation you will often need 3x3 transformation
matrices that define translation, rotation, scaling, shearing and
@ -89,11 +97,11 @@ basic matrix manipulations and tests.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2528838"></a><h2>Details</h2>
<a name="id2570126"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2528844"></a><h3>
<a name="id2570137"></a><h3>
<a name="GimpMatrix2"></a>GimpMatrix2</h3>
<a class="indexterm" name="id2528854"></a><pre class="programlisting">typedef struct {
<a class="indexterm" name="id2570149"></a><pre class="programlisting">typedef struct {
gdouble coeff[2][2];
} GimpMatrix2;
</pre>
@ -103,9 +111,9 @@ A two by two matrix.
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2528870"></a><h3>
<a name="id2570165"></a><h3>
<a name="GimpMatrix3"></a>GimpMatrix3</h3>
<a class="indexterm" name="id2528880"></a><pre class="programlisting">typedef struct {
<a class="indexterm" name="id2570177"></a><pre class="programlisting">typedef struct {
gdouble coeff[3][3];
} GimpMatrix3;
</pre>
@ -115,9 +123,9 @@ A three by three matrix.
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2528896"></a><h3>
<a name="id2570193"></a><h3>
<a name="GimpMatrix4"></a>GimpMatrix4</h3>
<a class="indexterm" name="id2528905"></a><pre class="programlisting">typedef struct {
<a class="indexterm" name="id2570205"></a><pre class="programlisting">typedef struct {
gdouble coeff[4][4];
} GimpMatrix4;
</pre>
@ -127,9 +135,9 @@ A four by four matrix.
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2528922"></a><h3>
<a name="id2510306"></a><h3>
<a name="gimp-matrix2-identity"></a>gimp_matrix2_identity ()</h3>
<a class="indexterm" name="id2528930"></a><pre class="programlisting">void gimp_matrix2_identity (<a href="libgimpmath-GimpMatrix.html#GimpMatrix2">GimpMatrix2</a> *matrix);</pre>
<a class="indexterm" name="id2510317"></a><pre class="programlisting">void gimp_matrix2_identity (<a href="libgimpmath-GimpMatrix.html#GimpMatrix2">GimpMatrix2</a> *matrix);</pre>
<p>
Sets the matrix to the identity matrix.</p>
<p>
@ -138,8 +146,7 @@ Sets the matrix to the identity matrix.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td> A matrix.
</td>
</tr></tbody>
@ -147,9 +154,9 @@ Sets the matrix to the identity matrix.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2474142"></a><h3>
<a name="id2510365"></a><h3>
<a name="gimp-matrix2-mult"></a>gimp_matrix2_mult ()</h3>
<a class="indexterm" name="id2474151"></a><pre class="programlisting">void gimp_matrix2_mult (const <a href="libgimpmath-GimpMatrix.html#GimpMatrix2">GimpMatrix2</a> *matrix1,
<a class="indexterm" name="id2510377"></a><pre class="programlisting">void gimp_matrix2_mult (const <a href="libgimpmath-GimpMatrix.html#GimpMatrix2">GimpMatrix2</a> *matrix1,
<a href="libgimpmath-GimpMatrix.html#GimpMatrix2">GimpMatrix2</a> *matrix2);</pre>
<p>
Multiplies two matrices and puts the result into the second one.</p>
@ -160,14 +167,12 @@ Multiplies two matrices and puts the result into the second one.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix1</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix1</code></em>&#160;:</span></td>
<td> The first input matrix.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix2</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix2</code></em>&#160;:</span></td>
<td> The second input matrix which will be overwritten by the result.
</td>
</tr>
@ -176,9 +181,9 @@ Multiplies two matrices and puts the result into the second one.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2474223"></a><h3>
<a name="id2510449"></a><h3>
<a name="gimp-matrix3-identity"></a>gimp_matrix3_identity ()</h3>
<a class="indexterm" name="id2474232"></a><pre class="programlisting">void gimp_matrix3_identity (<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);</pre>
<a class="indexterm" name="id2510461"></a><pre class="programlisting">void gimp_matrix3_identity (<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);</pre>
<p>
Sets the matrix to the identity matrix.</p>
<p>
@ -187,8 +192,7 @@ Sets the matrix to the identity matrix.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td> A matrix.
</td>
</tr></tbody>
@ -196,9 +200,9 @@ Sets the matrix to the identity matrix.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2474280"></a><h3>
<a name="id2510509"></a><h3>
<a name="gimp-matrix3-mult"></a>gimp_matrix3_mult ()</h3>
<a class="indexterm" name="id2474291"></a><pre class="programlisting">void gimp_matrix3_mult (const <a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix1,
<a class="indexterm" name="id2510521"></a><pre class="programlisting">void gimp_matrix3_mult (const <a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix1,
<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix2);</pre>
<p>
Multiplies two matrices and puts the result into the second one.</p>
@ -209,14 +213,12 @@ Multiplies two matrices and puts the result into the second one.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix1</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix1</code></em>&#160;:</span></td>
<td> The first input matrix.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix2</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix2</code></em>&#160;:</span></td>
<td> The second input matrix which will be overwritten by the result.
</td>
</tr>
@ -225,9 +227,9 @@ Multiplies two matrices and puts the result into the second one.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2474363"></a><h3>
<a name="id2599187"></a><h3>
<a name="gimp-matrix3-translate"></a>gimp_matrix3_translate ()</h3>
<a class="indexterm" name="id2474372"></a><pre class="programlisting">void gimp_matrix3_translate (<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
<a class="indexterm" name="id2599198"></a><pre class="programlisting">void gimp_matrix3_translate (<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
gdouble x,
gdouble y);</pre>
<p>
@ -239,20 +241,17 @@ Translates the matrix by x and y.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td> The matrix that is to be translated.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td> Translation in X direction.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td> Translation in Y direction.
</td>
</tr>
@ -261,9 +260,9 @@ Translates the matrix by x and y.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2558440"></a><h3>
<a name="id2599280"></a><h3>
<a name="gimp-matrix3-scale"></a>gimp_matrix3_scale ()</h3>
<a class="indexterm" name="id2558449"></a><pre class="programlisting">void gimp_matrix3_scale (<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
<a class="indexterm" name="id2599290"></a><pre class="programlisting">void gimp_matrix3_scale (<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
gdouble x,
gdouble y);</pre>
<p>
@ -275,20 +274,17 @@ Scales the matrix by x and y</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td> The matrix that is to be scaled.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td> X scale factor.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td> Y scale factor.
</td>
</tr>
@ -297,9 +293,9 @@ Scales the matrix by x and y</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2558532"></a><h3>
<a name="id2599378"></a><h3>
<a name="gimp-matrix3-rotate"></a>gimp_matrix3_rotate ()</h3>
<a class="indexterm" name="id2558542"></a><pre class="programlisting">void gimp_matrix3_rotate (<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
<a class="indexterm" name="id2599390"></a><pre class="programlisting">void gimp_matrix3_rotate (<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
gdouble theta);</pre>
<p>
Rotates the matrix by theta degrees.</p>
@ -310,14 +306,12 @@ Rotates the matrix by theta degrees.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td> The matrix that is to be rotated.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>theta</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>theta</code></em>&#160;:</span></td>
<td> The angle of rotation (in radians).
</td>
</tr>
@ -326,9 +320,9 @@ Rotates the matrix by theta degrees.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2558614"></a><h3>
<a name="id2599462"></a><h3>
<a name="gimp-matrix3-xshear"></a>gimp_matrix3_xshear ()</h3>
<a class="indexterm" name="id2558624"></a><pre class="programlisting">void gimp_matrix3_xshear (<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
<a class="indexterm" name="id2599474"></a><pre class="programlisting">void gimp_matrix3_xshear (<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
gdouble amount);</pre>
<p>
Shears the matrix in the X direction.</p>
@ -339,14 +333,12 @@ Shears the matrix in the X direction.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td> The matrix that is to be sheared.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>amount</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>amount</code></em>&#160;:</span></td>
<td> X shear amount.
</td>
</tr>
@ -355,9 +347,9 @@ Shears the matrix in the X direction.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2558695"></a><h3>
<a name="id2599546"></a><h3>
<a name="gimp-matrix3-yshear"></a>gimp_matrix3_yshear ()</h3>
<a class="indexterm" name="id2558706"></a><pre class="programlisting">void gimp_matrix3_yshear (<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
<a class="indexterm" name="id2599558"></a><pre class="programlisting">void gimp_matrix3_yshear (<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
gdouble amount);</pre>
<p>
Shears the matrix in the Y direction.</p>
@ -368,14 +360,12 @@ Shears the matrix in the Y direction.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td> The matrix that is to be sheared.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>amount</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>amount</code></em>&#160;:</span></td>
<td> Y shear amount.
</td>
</tr>
@ -384,9 +374,9 @@ Shears the matrix in the Y direction.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2558777"></a><h3>
<a name="id2599630"></a><h3>
<a name="gimp-matrix3-affine"></a>gimp_matrix3_affine ()</h3>
<a class="indexterm" name="id2558787"></a><pre class="programlisting">void gimp_matrix3_affine (<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
<a class="indexterm" name="id2599642"></a><pre class="programlisting">void gimp_matrix3_affine (<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
gdouble a,
gdouble b,
gdouble c,
@ -409,44 +399,37 @@ illustrated below:
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td> The input matrix.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>a</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>a</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>b</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>b</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>c</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>c</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>d</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>d</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>e</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>e</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>f</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>f</code></em>&#160;:</span></td>
<td>
</td>
</tr>
@ -455,9 +438,9 @@ illustrated below:
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2558974"></a><h3>
<a name="id2599829"></a><h3>
<a name="gimp-matrix3-transform-point"></a>gimp_matrix3_transform_point ()</h3>
<a class="indexterm" name="id2558985"></a><pre class="programlisting">void gimp_matrix3_transform_point (const <a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
<a class="indexterm" name="id2599842"></a><pre class="programlisting">void gimp_matrix3_transform_point (const <a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix,
gdouble x,
gdouble y,
gdouble *newx,
@ -471,32 +454,27 @@ Transforms a point in 2D as specified by the transformation matrix.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td> The transformation matrix.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td> The source X coordinate.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td> The source Y coordinate.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>newx</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>newx</code></em>&#160;:</span></td>
<td> The transformed X coordinate.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>newy</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>newy</code></em>&#160;:</span></td>
<td> The transformed Y coordinate.
</td>
</tr>
@ -505,9 +483,9 @@ Transforms a point in 2D as specified by the transformation matrix.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2559121"></a><h3>
<a name="id2599978"></a><h3>
<a name="gimp-matrix3-determinant"></a>gimp_matrix3_determinant ()</h3>
<a class="indexterm" name="id2559130"></a><pre class="programlisting">gdouble gimp_matrix3_determinant (const <a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);</pre>
<a class="indexterm" name="id2599989"></a><pre class="programlisting">gdouble gimp_matrix3_determinant (const <a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);</pre>
<p>
Calculates the determinant of the given matrix.</p>
<p>
@ -517,14 +495,12 @@ Calculates the determinant of the given matrix.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td> The input matrix.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> The determinant.
</td>
</tr>
@ -533,9 +509,9 @@ Calculates the determinant of the given matrix.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2559191"></a><h3>
<a name="id2600050"></a><h3>
<a name="gimp-matrix3-invert"></a>gimp_matrix3_invert ()</h3>
<a class="indexterm" name="id2559201"></a><pre class="programlisting">void gimp_matrix3_invert (<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);</pre>
<a class="indexterm" name="id2600063"></a><pre class="programlisting">void gimp_matrix3_invert (<a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);</pre>
<p>
Inverts the given matrix.</p>
<p>
@ -544,8 +520,7 @@ Inverts the given matrix.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td> The matrix that is to be inverted.
</td>
</tr></tbody>
@ -553,9 +528,9 @@ Inverts the given matrix.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2559250"></a><h3>
<a name="id2600112"></a><h3>
<a name="gimp-matrix3-is-diagonal"></a>gimp_matrix3_is_diagonal ()</h3>
<a class="indexterm" name="id2559259"></a><pre class="programlisting">gboolean gimp_matrix3_is_diagonal (const <a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);</pre>
<a class="indexterm" name="id2600123"></a><pre class="programlisting">gboolean gimp_matrix3_is_diagonal (const <a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);</pre>
<p>
Checks if the given matrix is diagonal.</p>
<p>
@ -565,14 +540,12 @@ Checks if the given matrix is diagonal.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td> The matrix that is to be tested.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> TRUE if the matrix is diagonal.
</td>
</tr>
@ -581,9 +554,9 @@ Checks if the given matrix is diagonal.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2559320"></a><h3>
<a name="id2600184"></a><h3>
<a name="gimp-matrix3-is-identity"></a>gimp_matrix3_is_identity ()</h3>
<a class="indexterm" name="id2559329"></a><pre class="programlisting">gboolean gimp_matrix3_is_identity (const <a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);</pre>
<a class="indexterm" name="id2600196"></a><pre class="programlisting">gboolean gimp_matrix3_is_identity (const <a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);</pre>
<p>
Checks if the given matrix is the identity matrix.</p>
<p>
@ -593,14 +566,12 @@ Checks if the given matrix is the identity matrix.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td> The matrix that is to be tested.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> TRUE if the matrix is the identity matrix.
</td>
</tr>
@ -609,9 +580,9 @@ Checks if the given matrix is the identity matrix.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2526968"></a><h3>
<a name="id2600257"></a><h3>
<a name="gimp-matrix3-is-simple"></a>gimp_matrix3_is_simple ()</h3>
<a class="indexterm" name="id2526842"></a><pre class="programlisting">gboolean gimp_matrix3_is_simple (const <a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);</pre>
<a class="indexterm" name="id2600268"></a><pre class="programlisting">gboolean gimp_matrix3_is_simple (const <a href="libgimpmath-GimpMatrix.html#GimpMatrix3">GimpMatrix3</a> *matrix);</pre>
<p>
Checks if we'll need to interpolate when applying this matrix as
a transformation.</p>
@ -622,14 +593,12 @@ a transformation.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td> The matrix that is to be tested.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> TRUE if all entries of the upper left 2x2 matrix are either
0 or 1
</td>
@ -639,9 +608,9 @@ a transformation.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2559438"></a><h3>
<a name="id2600331"></a><h3>
<a name="gimp-matrix4-to-deg"></a>gimp_matrix4_to_deg ()</h3>
<a class="indexterm" name="id2559446"></a><pre class="programlisting">void gimp_matrix4_to_deg (const <a href="libgimpmath-GimpMatrix.html#GimpMatrix4">GimpMatrix4</a> *matrix,
<a class="indexterm" name="id2600343"></a><pre class="programlisting">void gimp_matrix4_to_deg (const <a href="libgimpmath-GimpMatrix.html#GimpMatrix4">GimpMatrix4</a> *matrix,
gdouble *a,
gdouble *b,
gdouble *c);</pre>
@ -654,26 +623,22 @@ a transformation.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>a</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>a</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>b</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>b</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>c</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>c</code></em>&#160;:</span></td>
<td>
</td>
</tr>
@ -682,7 +647,7 @@ a transformation.</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2559548"></a><h2>See Also</h2>
<a name="id2600457"></a><h2>See Also</h2>
<p>
<a href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>
</p>
@ -694,9 +659,5 @@ a transformation.</p>
</p>
</div>
</div>
<table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle">
<td align="left"><a accesskey="p" href="libgimpmath-GimpMath.html"><b>&lt;&lt;&#160;GimpMath</b></a></td>
<td align="right"><a accesskey="n" href="libgimpmath-GimpVector.html"><b>GimpVector&#160;&gt;&gt;</b></a></td>
</tr></table>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<book xmlns="http://www.devhelp.net/book" title="GIMP Math Library Reference Manual" link="index.html" author="" name="libgimpmath">
<chapters>
<sub name="GIMP Math Library" link="libgimpmath.html">

View File

@ -0,0 +1,88 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<book xmlns="http://www.devhelp.net/book" title="GIMP Math Library Reference Manual" link="index.html" author="" name="libgimpmath" version="2">
<chapters>
<sub name="GIMP Math Library" link="libgimpmath.html">
<sub name="GimpMath" link="libgimpmath-GimpMath.html"/>
<sub name="GimpMatrix" link="libgimpmath-GimpMatrix.html"/>
<sub name="GimpVector" link="libgimpmath-GimpVector.html"/>
<sub name="GimpMD5" link="libgimpmath-GimpMD5.html"/>
</sub>
</chapters>
<functions>
<keyword type="macro" name="RINT()" link="libgimpmath-GimpMath.html#RINT:CAPS"/>
<keyword type="macro" name="ROUND()" link="libgimpmath-GimpMath.html#ROUND:CAPS"/>
<keyword type="macro" name="SQR()" link="libgimpmath-GimpMath.html#SQR:CAPS"/>
<keyword type="macro" name="MAX255()" link="libgimpmath-GimpMath.html#MAX255:CAPS"/>
<keyword type="macro" name="CLAMP0255()" link="libgimpmath-GimpMath.html#CLAMP0255:CAPS"/>
<keyword type="macro" name="gimp_deg_to_rad()" link="libgimpmath-GimpMath.html#gimp-deg-to-rad"/>
<keyword type="macro" name="gimp_rad_to_deg()" link="libgimpmath-GimpMath.html#gimp-rad-to-deg"/>
<keyword type="struct" name="GimpMatrix2" link="libgimpmath-GimpMatrix.html#GimpMatrix2"/>
<keyword type="struct" name="GimpMatrix3" link="libgimpmath-GimpMatrix.html#GimpMatrix3"/>
<keyword type="struct" name="GimpMatrix4" link="libgimpmath-GimpMatrix.html#GimpMatrix4"/>
<keyword type="function" name="gimp_matrix2_identity ()" link="libgimpmath-GimpMatrix.html#gimp-matrix2-identity"/>
<keyword type="function" name="gimp_matrix2_mult ()" link="libgimpmath-GimpMatrix.html#gimp-matrix2-mult"/>
<keyword type="function" name="gimp_matrix3_identity ()" link="libgimpmath-GimpMatrix.html#gimp-matrix3-identity"/>
<keyword type="function" name="gimp_matrix3_mult ()" link="libgimpmath-GimpMatrix.html#gimp-matrix3-mult"/>
<keyword type="function" name="gimp_matrix3_translate ()" link="libgimpmath-GimpMatrix.html#gimp-matrix3-translate"/>
<keyword type="function" name="gimp_matrix3_scale ()" link="libgimpmath-GimpMatrix.html#gimp-matrix3-scale"/>
<keyword type="function" name="gimp_matrix3_rotate ()" link="libgimpmath-GimpMatrix.html#gimp-matrix3-rotate"/>
<keyword type="function" name="gimp_matrix3_xshear ()" link="libgimpmath-GimpMatrix.html#gimp-matrix3-xshear"/>
<keyword type="function" name="gimp_matrix3_yshear ()" link="libgimpmath-GimpMatrix.html#gimp-matrix3-yshear"/>
<keyword type="function" name="gimp_matrix3_affine ()" link="libgimpmath-GimpMatrix.html#gimp-matrix3-affine"/>
<keyword type="function" name="gimp_matrix3_transform_point ()" link="libgimpmath-GimpMatrix.html#gimp-matrix3-transform-point"/>
<keyword type="function" name="gimp_matrix3_determinant ()" link="libgimpmath-GimpMatrix.html#gimp-matrix3-determinant"/>
<keyword type="function" name="gimp_matrix3_invert ()" link="libgimpmath-GimpMatrix.html#gimp-matrix3-invert"/>
<keyword type="function" name="gimp_matrix3_is_diagonal ()" link="libgimpmath-GimpMatrix.html#gimp-matrix3-is-diagonal"/>
<keyword type="function" name="gimp_matrix3_is_identity ()" link="libgimpmath-GimpMatrix.html#gimp-matrix3-is-identity"/>
<keyword type="function" name="gimp_matrix3_is_simple ()" link="libgimpmath-GimpMatrix.html#gimp-matrix3-is-simple"/>
<keyword type="function" name="gimp_matrix4_to_deg ()" link="libgimpmath-GimpMatrix.html#gimp-matrix4-to-deg"/>
<keyword type="struct" name="GimpVector2" link="libgimpmath-GimpVector.html#GimpVector2"/>
<keyword type="struct" name="GimpVector3" link="libgimpmath-GimpVector.html#GimpVector3"/>
<keyword type="struct" name="GimpVector4" link="libgimpmath-GimpVector.html#GimpVector4"/>
<keyword type="function" name="gimp_vector2_new ()" link="libgimpmath-GimpVector.html#gimp-vector2-new"/>
<keyword type="function" name="gimp_vector2_set ()" link="libgimpmath-GimpVector.html#gimp-vector2-set"/>
<keyword type="function" name="gimp_vector2_length ()" link="libgimpmath-GimpVector.html#gimp-vector2-length"/>
<keyword type="function" name="gimp_vector2_length_val ()" link="libgimpmath-GimpVector.html#gimp-vector2-length-val"/>
<keyword type="function" name="gimp_vector2_mul ()" link="libgimpmath-GimpVector.html#gimp-vector2-mul"/>
<keyword type="function" name="gimp_vector2_mul_val ()" link="libgimpmath-GimpVector.html#gimp-vector2-mul-val"/>
<keyword type="function" name="gimp_vector2_normalize ()" link="libgimpmath-GimpVector.html#gimp-vector2-normalize"/>
<keyword type="function" name="gimp_vector2_normalize_val ()" link="libgimpmath-GimpVector.html#gimp-vector2-normalize-val"/>
<keyword type="function" name="gimp_vector2_neg ()" link="libgimpmath-GimpVector.html#gimp-vector2-neg"/>
<keyword type="function" name="gimp_vector2_neg_val ()" link="libgimpmath-GimpVector.html#gimp-vector2-neg-val"/>
<keyword type="function" name="gimp_vector2_add ()" link="libgimpmath-GimpVector.html#gimp-vector2-add"/>
<keyword type="function" name="gimp_vector2_add_val ()" link="libgimpmath-GimpVector.html#gimp-vector2-add-val"/>
<keyword type="function" name="gimp_vector2_sub ()" link="libgimpmath-GimpVector.html#gimp-vector2-sub"/>
<keyword type="function" name="gimp_vector2_sub_val ()" link="libgimpmath-GimpVector.html#gimp-vector2-sub-val"/>
<keyword type="function" name="gimp_vector2_inner_product ()" link="libgimpmath-GimpVector.html#gimp-vector2-inner-product"/>
<keyword type="function" name="gimp_vector2_inner_product_val ()" link="libgimpmath-GimpVector.html#gimp-vector2-inner-product-val"/>
<keyword type="function" name="gimp_vector2_cross_product ()" link="libgimpmath-GimpVector.html#gimp-vector2-cross-product"/>
<keyword type="function" name="gimp_vector2_cross_product_val ()" link="libgimpmath-GimpVector.html#gimp-vector2-cross-product-val"/>
<keyword type="function" name="gimp_vector2_rotate ()" link="libgimpmath-GimpVector.html#gimp-vector2-rotate"/>
<keyword type="function" name="gimp_vector2_rotate_val ()" link="libgimpmath-GimpVector.html#gimp-vector2-rotate-val"/>
<keyword type="function" name="gimp_vector3_new ()" link="libgimpmath-GimpVector.html#gimp-vector3-new"/>
<keyword type="function" name="gimp_vector3_set ()" link="libgimpmath-GimpVector.html#gimp-vector3-set"/>
<keyword type="function" name="gimp_vector3_length ()" link="libgimpmath-GimpVector.html#gimp-vector3-length"/>
<keyword type="function" name="gimp_vector3_length_val ()" link="libgimpmath-GimpVector.html#gimp-vector3-length-val"/>
<keyword type="function" name="gimp_vector3_mul ()" link="libgimpmath-GimpVector.html#gimp-vector3-mul"/>
<keyword type="function" name="gimp_vector3_mul_val ()" link="libgimpmath-GimpVector.html#gimp-vector3-mul-val"/>
<keyword type="function" name="gimp_vector3_normalize ()" link="libgimpmath-GimpVector.html#gimp-vector3-normalize"/>
<keyword type="function" name="gimp_vector3_normalize_val ()" link="libgimpmath-GimpVector.html#gimp-vector3-normalize-val"/>
<keyword type="function" name="gimp_vector3_neg ()" link="libgimpmath-GimpVector.html#gimp-vector3-neg"/>
<keyword type="function" name="gimp_vector3_neg_val ()" link="libgimpmath-GimpVector.html#gimp-vector3-neg-val"/>
<keyword type="function" name="gimp_vector3_add ()" link="libgimpmath-GimpVector.html#gimp-vector3-add"/>
<keyword type="function" name="gimp_vector3_add_val ()" link="libgimpmath-GimpVector.html#gimp-vector3-add-val"/>
<keyword type="function" name="gimp_vector3_sub ()" link="libgimpmath-GimpVector.html#gimp-vector3-sub"/>
<keyword type="function" name="gimp_vector3_sub_val ()" link="libgimpmath-GimpVector.html#gimp-vector3-sub-val"/>
<keyword type="function" name="gimp_vector3_inner_product ()" link="libgimpmath-GimpVector.html#gimp-vector3-inner-product"/>
<keyword type="function" name="gimp_vector3_inner_product_val ()" link="libgimpmath-GimpVector.html#gimp-vector3-inner-product-val"/>
<keyword type="function" name="gimp_vector3_cross_product ()" link="libgimpmath-GimpVector.html#gimp-vector3-cross-product"/>
<keyword type="function" name="gimp_vector3_cross_product_val ()" link="libgimpmath-GimpVector.html#gimp-vector3-cross-product-val"/>
<keyword type="function" name="gimp_vector3_rotate ()" link="libgimpmath-GimpVector.html#gimp-vector3-rotate"/>
<keyword type="function" name="gimp_vector3_rotate_val ()" link="libgimpmath-GimpVector.html#gimp-vector3-rotate-val"/>
<keyword type="function" name="gimp_vector_2d_to_3d ()" link="libgimpmath-GimpVector.html#gimp-vector-2d-to-3d"/>
<keyword type="function" name="gimp_vector_2d_to_3d_val ()" link="libgimpmath-GimpVector.html#gimp-vector-2d-to-3d-val"/>
<keyword type="function" name="gimp_vector_3d_to_2d ()" link="libgimpmath-GimpVector.html#gimp-vector-3d-to-2d"/>
<keyword type="function" name="gimp_md5_get_digest ()" link="libgimpmath-GimpMD5.html#gimp-md5-get-digest"/>
</functions>
</book>

View File

@ -1,28 +1,26 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Part&#160;I.&#160;GIMP Math Library</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
<link rel="start" href="index.html" title="GIMP Math Library Reference Manual">
<link rel="up" href="index.html" title="GIMP Math Library Reference Manual">
<link rel="prev" href="index.html" title="GIMP Math Library Reference Manual">
<link rel="next" href="libgimpmath-GimpMath.html" title="GimpMath">
<meta name="generator" content="GTK-Doc V1.4 (XML mode)">
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="libgimpmath.html" title="Part&#160;I.&#160;GIMP Math Library">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<td><a accesskey="p" href="index.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td>&#160;</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIMP Math Library Reference Manual</th>
<td><a accesskey="n" href="libgimpmath-GimpMath.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
<div class="part" lang="en"><div class="titlepage"><div><div><h1 class="title">
<a name="libgimpmath"></a>GIMP Math Library</h1></div></div></div></div>
<table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle">
<td align="left"><a accesskey="p" href="index.html"><b>&lt;&lt;&#160;GIMP Math Library Reference Manual</b></a></td>
<td align="right"><a accesskey="n" href="libgimpmath-GimpMath.html"><b>GimpMath&#160;&gt;&gt;</b></a></td>
</tr></table>
<a name="libgimpmath"></a>Part&#160;I.&#160;GIMP Math Library</h1></div></div></div></div>
</body>
</html>

View File

@ -19,12 +19,22 @@
{
vertical-align: top;
}
table.navigation
div a[name]
{
position: relative;
top: -4.5em;
}
table.navigation#top
{
background: #ffeeee;
border: solid 1px #ffaaaa;
margin-top: 0.5em;
margin-bottom: 0.5em;
margin-top: 0;
margin-bottom: 0;
position: fixed;
top: 0;
left: 0;
height: 2em;
z-index: 1;
}
.navigation a
{
@ -38,6 +48,18 @@ table.navigation
{
font-size: 200%;
}
td.shortcuts
{
color: #770000;
font-size: 80%;
}
div.refentry, div.chapter, div.part, div.book, div.index, div.glossary, div.sect1
{
position: relative;
top: 3em;
z-index: 0;
}
div.refnamediv
{
margin-top: 2em;