~ubuntu-branches/ubuntu/saucy/gimp/saucy-updates

« back to all changes in this revision

Viewing changes to devel-docs/libgimpmath/html/libgimpmath-GimpMath.html

  • Committer: Package Import Robot
  • Author(s): Micah Gersten
  • Date: 2012-02-22 23:47:53 UTC
  • mfrom: (1.1.25) (0.4.15 sid)
  • Revision ID: package-import@ubuntu.com-20120222234753-2a4wqdkb2bbx4mjb
Tags: 2.6.12-1ubuntu1
* Merge from Debian unstable (LP: #925674). Remaining Changes:
  - debian/patches/02_help-message.patch,
    debian/patches/03_gimp.desktop.in.in.patch:
    + Update some strings for Ubuntu
  - debian/patches/ghost-cursor.patch: fix Wacom tablet cursor events
  - debian/control:
    + Update description
  - debian/rules:
    + Set gettext domain and update translation templates

* Drop poppler patch as it's been applied upstream
  - drop debian/patches/poppler0.18.patch
  - update debian/patches/series
* fix LP: #680521 - Embed page setup dialog functionality in the print dialog
  - add debian/patches/embed-page-setup-dialog.patch
  - update debian/patches/series

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>GimpMath</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7
7
<link rel="home" href="index.html" title="GIMP Math Library Reference Manual">
8
8
<link rel="up" href="libgimpmath.html" title="Part I. GIMP Math Library">
9
9
<link rel="prev" href="libgimpmath.html" title="Part I. GIMP Math Library">
10
10
<link rel="next" href="libgimpmath-GimpMatrix.html" title="GimpMatrix">
11
 
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
</head>
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
26
26
                  <a href="#libgimpmath-GimpMath.description" class="shortcut">Description</a>
27
27
</td></tr>
28
28
</table>
29
 
<div class="refentry" title="GimpMath">
 
29
<div class="refentry">
30
30
<a name="libgimpmath-GimpMath"></a><div class="titlepage"></div>
31
31
<div class="refnamediv"><table width="100%"><tr>
32
32
<td valign="top">
35
35
</td>
36
36
<td valign="top" align="right"></td>
37
37
</tr></table></div>
38
 
<div class="refsynopsisdiv" title="Synopsis">
 
38
<div class="refsynopsisdiv">
39
39
<a name="libgimpmath-GimpMath.synopsis"></a><h2>Synopsis</h2>
40
40
<pre class="synopsis">#define             <a class="link" href="libgimpmath-GimpMath.html#RINT:CAPS" title="RINT()">RINT</a>                                (x)
41
41
#define             <a class="link" href="libgimpmath-GimpMath.html#ROUND:CAPS" title="ROUND()">ROUND</a>                               (x)
46
46
#define             <a class="link" href="libgimpmath-GimpMath.html#gimp-rad-to-deg" title="gimp_rad_to_deg()">gimp_rad_to_deg</a>                     (angle)
47
47
</pre>
48
48
</div>
49
 
<div class="refsect1" title="Description">
 
49
<div class="refsect1">
50
50
<a name="libgimpmath-GimpMath.description"></a><h2>Description</h2>
51
51
<p>
52
52
Mathematical definitions and macros. These macros should be used
53
53
rather than the ones from math.h for enhanced portability.
54
54
</p>
55
55
</div>
56
 
<div class="refsect1" title="Details">
 
56
<div class="refsect1">
57
57
<a name="libgimpmath-GimpMath.details"></a><h2>Details</h2>
58
 
<div class="refsect2" title="RINT()">
 
58
<div class="refsect2">
59
59
<a name="RINT:CAPS"></a><h3>RINT()</h3>
60
 
<pre class="programlisting">#define             RINT(x)</pre>
 
60
<pre class="programlisting">#define RINT(x) rint(x)
 
61
</pre>
61
62
<p>
62
63
This macro rounds its argument <em class="parameter"><code>x</code></em> to an integer value in floating point
63
64
format.
66
67
<col align="left" valign="top">
67
68
<tbody><tr>
68
69
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
69
 
<td>the value to be rounded.
70
 
</td>
 
70
<td>the value to be rounded.</td>
71
71
</tr></tbody>
72
72
</table></div>
73
73
</div>
74
74
<hr>
75
 
<div class="refsect2" title="ROUND()">
 
75
<div class="refsect2">
76
76
<a name="ROUND:CAPS"></a><h3>ROUND()</h3>
77
77
<pre class="programlisting">#define ROUND(x) ((int) ((x) + 0.5))
78
78
</pre>
83
83
<col align="left" valign="top">
84
84
<tbody><tr>
85
85
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
86
 
<td>the value to be rounded.
87
 
</td>
 
86
<td>the value to be rounded.</td>
88
87
</tr></tbody>
89
88
</table></div>
90
89
</div>
91
90
<hr>
92
 
<div class="refsect2" title="SQR()">
 
91
<div class="refsect2">
93
92
<a name="SQR:CAPS"></a><h3>SQR()</h3>
94
93
<pre class="programlisting">#define SQR(x) ((x) * (x))
95
94
</pre>
100
99
<col align="left" valign="top">
101
100
<tbody><tr>
102
101
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
103
 
<td>the value to be squared.
104
 
</td>
 
102
<td>the value to be squared.</td>
105
103
</tr></tbody>
106
104
</table></div>
107
105
</div>
108
106
<hr>
109
 
<div class="refsect2" title="MAX255()">
 
107
<div class="refsect2">
110
108
<a name="MAX255:CAPS"></a><h3>MAX255()</h3>
111
109
<pre class="programlisting">#define MAX255(a)  ((a) | (((a) &amp; 256) - (((a) &amp; 256) &gt;&gt; 8)))
112
110
</pre>
117
115
<col align="left" valign="top">
118
116
<tbody><tr>
119
117
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
120
 
<td>the value to be limited.
121
 
</td>
 
118
<td>the value to be limited.</td>
122
119
</tr></tbody>
123
120
</table></div>
124
121
</div>
125
122
<hr>
126
 
<div class="refsect2" title="CLAMP0255()">
 
123
<div class="refsect2">
127
124
<a name="CLAMP0255:CAPS"></a><h3>CLAMP0255()</h3>
128
125
<pre class="programlisting">#define CLAMP0255(a)  CLAMP(a,0,255)
129
126
</pre>
135
132
<col align="left" valign="top">
136
133
<tbody><tr>
137
134
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
138
 
<td>the value to be clamped.
139
 
</td>
 
135
<td>the value to be clamped.</td>
140
136
</tr></tbody>
141
137
</table></div>
142
138
</div>
143
139
<hr>
144
 
<div class="refsect2" title="gimp_deg_to_rad()">
 
140
<div class="refsect2">
145
141
<a name="gimp-deg-to-rad"></a><h3>gimp_deg_to_rad()</h3>
146
142
<pre class="programlisting">#define gimp_deg_to_rad(angle) ((angle) * (2.0 * G_PI) / 360.0)
147
143
</pre>
152
148
<col align="left" valign="top">
153
149
<tbody><tr>
154
150
<td><p><span class="term"><em class="parameter"><code>angle</code></em> :</span></p></td>
155
 
<td>the angle to be converted.
156
 
</td>
 
151
<td>the angle to be converted.</td>
157
152
</tr></tbody>
158
153
</table></div>
159
154
</div>
160
155
<hr>
161
 
<div class="refsect2" title="gimp_rad_to_deg()">
 
156
<div class="refsect2">
162
157
<a name="gimp-rad-to-deg"></a><h3>gimp_rad_to_deg()</h3>
163
158
<pre class="programlisting">#define gimp_rad_to_deg(angle) ((angle) * 360.0 / (2.0 * G_PI))
164
159
</pre>
169
164
<col align="left" valign="top">
170
165
<tbody><tr>
171
166
<td><p><span class="term"><em class="parameter"><code>angle</code></em> :</span></p></td>
172
 
<td>the angle to be converted.
173
 
</td>
 
167
<td>the angle to be converted.</td>
174
168
</tr></tbody>
175
169
</table></div>
176
170
</div>
178
172
</div>
179
173
<div class="footer">
180
174
<hr>
181
 
          Generated by GTK-Doc V1.15</div>
 
175
          Generated by GTK-Doc V1.18</div>
182
176
</body>
183
177
</html>
 
 
b'\\ No newline at end of file'