~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-08-22 11:50:05 UTC
  • mfrom: (0.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20080822115005-yxj5svf3v9x1mkr7
Tags: upstream-2.4.7
Import upstream version 2.4.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
2
<html>
3
3
<head>
4
 
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
 
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>GimpVector</title>
6
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
7
<link rel="start" href="index.html" title="GIMP Math Library Reference Manual">
8
 
<link rel="up" href="libgimpmath.html" title="Part&#160;I.&#160;GIMP Math Library">
 
8
<link rel="up" href="libgimpmath.html" title="Part I. GIMP Math Library">
9
9
<link rel="prev" href="libgimpmath-GimpMatrix.html" title="GimpMatrix">
10
10
<link rel="next" href="libgimpmath-GimpMD5.html" title="GimpMD5">
11
 
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
 
<link rel="part" href="libgimpmath.html" title="Part&#160;I.&#160;GIMP Math Library">
 
13
<link rel="part" href="libgimpmath.html" title="Part I. GIMP Math Library">
14
14
<link rel="index" href="libgimpmath-index.html" title="Index">
15
15
<link rel="index" href="libgimpmath-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
16
16
<link rel="index" href="libgimpmath-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
25
25
<th width="100%" align="center">GIMP Math Library Reference Manual</th>
26
26
<td><a accesskey="n" href="libgimpmath-GimpMD5.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
27
27
</tr>
28
 
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2610563" class="shortcut">Top</a>
29
 
                  &#160;|&#160;
30
 
                  <a href="#id2625103" class="shortcut">Description</a></nobr></td></tr>
 
28
<tr><td colspan="5" class="shortcuts"><nobr><a href="#libgimpmath-GimpVector.synopsis" class="shortcut">Top</a>
 
29
                   | 
 
30
                  <a href="#libgimpmath-GimpVector.description" class="shortcut">Description</a></nobr></td></tr>
31
31
</table>
32
32
<div class="refentry" lang="en">
33
33
<a name="libgimpmath-GimpVector"></a><div class="titlepage"></div>
34
34
<div class="refnamediv"><table width="100%"><tr>
35
35
<td valign="top">
36
 
<h2>
37
 
<a name="id2610563"></a><span class="refentrytitle">GimpVector</span>
38
 
</h2>
39
 
<p>GimpVector &#8212; Utilities to set up and manipulate vectors.</p>
 
36
<h2><span class="refentrytitle"><a name="libgimpmath-GimpVector.top_of_page"></a>GimpVector</span></h2>
 
37
<p>GimpVector — Utilities to set up and manipulate vectors.</p>
40
38
</td>
41
39
<td valign="top" align="right"></td>
42
40
</tr></table></div>
43
41
<div class="refsynopsisdiv">
44
 
<h2>Synopsis</h2>
 
42
<a name="libgimpmath-GimpVector.synopsis"></a><h2>Synopsis</h2>
45
43
<pre class="synopsis">
46
 
 
47
 
 
48
 
 
49
 
                    <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>;
50
 
                    <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>;
51
 
                    <a class="link" href="libgimpmath-GimpVector.html#GimpVector4">GimpVector4</a>;
52
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-new">gimp_vector2_new</a>                    (<a
53
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
54
 
>gdouble</a> x,
55
 
                                                         <a
56
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
57
 
>gdouble</a> y);
58
 
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-set">gimp_vector2_set</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector,
59
 
                                                         <a
60
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
61
 
>gdouble</a> x,
62
 
                                                         <a
63
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
64
 
>gdouble</a> y);
65
 
<a
66
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
67
 
>gdouble</a>             <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-length">gimp_vector2_length</a>                 (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector);
68
 
<a
69
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
70
 
>gdouble</a>             <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-length-val">gimp_vector2_length_val</a>             (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector);
71
 
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-mul">gimp_vector2_mul</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector,
72
 
                                                         <a
73
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
74
 
>gdouble</a> factor);
75
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-mul-val">gimp_vector2_mul_val</a>                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector,
76
 
                                                         <a
77
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
78
 
>gdouble</a> factor);
79
 
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-normalize">gimp_vector2_normalize</a>              (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector);
80
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-normalize-val">gimp_vector2_normalize_val</a>          (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector);
81
 
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-neg">gimp_vector2_neg</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector);
82
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-neg-val">gimp_vector2_neg_val</a>                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector);
83
 
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-add">gimp_vector2_add</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *result,
84
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector1,
85
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector2);
86
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-add-val">gimp_vector2_add_val</a>                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector1,
87
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector2);
88
 
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-sub">gimp_vector2_sub</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *result,
89
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector1,
90
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector2);
91
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-sub-val">gimp_vector2_sub_val</a>                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector1,
92
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector2);
93
 
<a
94
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
95
 
>gdouble</a>             <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-inner-product">gimp_vector2_inner_product</a>          (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector1,
96
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector2);
97
 
<a
98
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
99
 
>gdouble</a>             <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-inner-product-val">gimp_vector2_inner_product_val</a>      (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector1,
100
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector2);
101
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-cross-product">gimp_vector2_cross_product</a>          (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector1,
102
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector2);
103
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-cross-product-val">gimp_vector2_cross_product_val</a>      (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector1,
104
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector2);
105
 
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-rotate">gimp_vector2_rotate</a>                 (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector,
106
 
                                                         <a
107
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
108
 
>gdouble</a> alpha);
109
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-rotate-val">gimp_vector2_rotate_val</a>             (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector,
110
 
                                                         <a
111
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
112
 
>gdouble</a> alpha);
113
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-new">gimp_vector3_new</a>                    (<a
114
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
115
 
>gdouble</a> x,
116
 
                                                         <a
117
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
118
 
>gdouble</a> y,
119
 
                                                         <a
120
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
121
 
>gdouble</a> z);
122
 
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-set">gimp_vector3_set</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector,
123
 
                                                         <a
124
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
125
 
>gdouble</a> x,
126
 
                                                         <a
127
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
128
 
>gdouble</a> y,
129
 
                                                         <a
130
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
131
 
>gdouble</a> z);
132
 
<a
133
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
134
 
>gdouble</a>             <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-length">gimp_vector3_length</a>                 (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector);
135
 
<a
136
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
137
 
>gdouble</a>             <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-length-val">gimp_vector3_length_val</a>             (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector);
138
 
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-mul">gimp_vector3_mul</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector,
139
 
                                                         <a
140
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
141
 
>gdouble</a> factor);
142
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-mul-val">gimp_vector3_mul_val</a>                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector,
143
 
                                                         <a
144
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
145
 
>gdouble</a> factor);
146
 
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-normalize">gimp_vector3_normalize</a>              (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector);
147
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-normalize-val">gimp_vector3_normalize_val</a>          (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector);
148
 
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-neg">gimp_vector3_neg</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector);
149
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-neg-val">gimp_vector3_neg_val</a>                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector);
150
 
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-add">gimp_vector3_add</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *result,
151
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector1,
152
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector2);
153
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-add-val">gimp_vector3_add_val</a>                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector1,
154
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector2);
155
 
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-sub">gimp_vector3_sub</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *result,
156
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector1,
157
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector2);
158
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-sub-val">gimp_vector3_sub_val</a>                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector1,
159
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector2);
160
 
<a
161
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
162
 
>gdouble</a>             <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-inner-product">gimp_vector3_inner_product</a>          (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector1,
163
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector2);
164
 
<a
165
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
166
 
>gdouble</a>             <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-inner-product-val">gimp_vector3_inner_product_val</a>      (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector1,
167
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector2);
168
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-cross-product">gimp_vector3_cross_product</a>          (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector1,
169
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector2);
170
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-cross-product-val">gimp_vector3_cross_product_val</a>      (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector1,
171
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector2);
172
 
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-rotate">gimp_vector3_rotate</a>                 (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector,
173
 
                                                         <a
174
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
175
 
>gdouble</a> alpha,
176
 
                                                         <a
177
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
178
 
>gdouble</a> beta,
179
 
                                                         <a
180
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
181
 
>gdouble</a> gamma);
182
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-rotate-val">gimp_vector3_rotate_val</a>             (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector,
183
 
                                                         <a
184
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
185
 
>gdouble</a> alpha,
186
 
                                                         <a
187
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
188
 
>gdouble</a> beta,
189
 
                                                         <a
190
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
191
 
>gdouble</a> gamma);
192
 
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector-2d-to-3d">gimp_vector_2d_to_3d</a>                (<a
193
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
194
 
>gint</a> sx,
195
 
                                                         <a
196
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
197
 
>gint</a> sy,
198
 
                                                         <a
199
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
200
 
>gint</a> w,
201
 
                                                         <a
202
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
203
 
>gint</a> h,
204
 
                                                         <a
205
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
206
 
>gint</a> x,
207
 
                                                         <a
208
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
209
 
>gint</a> y,
210
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vp,
211
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *p);
212
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector-2d-to-3d-val">gimp_vector_2d_to_3d_val</a>            (<a
213
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
214
 
>gint</a> sx,
215
 
                                                         <a
216
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
217
 
>gint</a> sy,
218
 
                                                         <a
219
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
220
 
>gint</a> w,
221
 
                                                         <a
222
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
223
 
>gint</a> h,
224
 
                                                         <a
225
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
226
 
>gint</a> x,
227
 
                                                         <a
228
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
229
 
>gint</a> y,
230
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vp,
231
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> p);
232
 
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector-3d-to-2d">gimp_vector_3d_to_2d</a>                (<a
233
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
234
 
>gint</a> sx,
235
 
                                                         <a
236
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
237
 
>gint</a> sy,
238
 
                                                         <a
239
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
240
 
>gint</a> w,
241
 
                                                         <a
242
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
243
 
>gint</a> h,
244
 
                                                         <a
245
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
246
 
>gdouble</a> *x,
247
 
                                                         <a
248
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
249
 
>gdouble</a> *y,
250
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vp,
251
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *p);
 
44
                    <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>;
 
45
                    <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>;
 
46
                    <a class="link" href="libgimpmath-GimpVector.html#GimpVector4" title="GimpVector4">GimpVector4</a>;
 
47
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-new" title="gimp_vector2_new ()">gimp_vector2_new</a>                    (gdouble x,
 
48
                                                         gdouble y);
 
49
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-set" title="gimp_vector2_set ()">gimp_vector2_set</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector,
 
50
                                                         gdouble x,
 
51
                                                         gdouble y);
 
52
gdouble             <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-length" title="gimp_vector2_length ()">gimp_vector2_length</a>                 (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector);
 
53
gdouble             <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-length-val" title="gimp_vector2_length_val ()">gimp_vector2_length_val</a>             (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector);
 
54
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-mul" title="gimp_vector2_mul ()">gimp_vector2_mul</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector,
 
55
                                                         gdouble factor);
 
56
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-mul-val" title="gimp_vector2_mul_val ()">gimp_vector2_mul_val</a>                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector,
 
57
                                                         gdouble factor);
 
58
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-normalize" title="gimp_vector2_normalize ()">gimp_vector2_normalize</a>              (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector);
 
59
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-normalize-val" title="gimp_vector2_normalize_val ()">gimp_vector2_normalize_val</a>          (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector);
 
60
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-neg" title="gimp_vector2_neg ()">gimp_vector2_neg</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector);
 
61
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-neg-val" title="gimp_vector2_neg_val ()">gimp_vector2_neg_val</a>                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector);
 
62
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-add" title="gimp_vector2_add ()">gimp_vector2_add</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *result,
 
63
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector1,
 
64
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector2);
 
65
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-add-val" title="gimp_vector2_add_val ()">gimp_vector2_add_val</a>                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector1,
 
66
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector2);
 
67
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-sub" title="gimp_vector2_sub ()">gimp_vector2_sub</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *result,
 
68
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector1,
 
69
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector2);
 
70
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-sub-val" title="gimp_vector2_sub_val ()">gimp_vector2_sub_val</a>                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector1,
 
71
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector2);
 
72
gdouble             <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-inner-product" title="gimp_vector2_inner_product ()">gimp_vector2_inner_product</a>          (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector1,
 
73
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector2);
 
74
gdouble             <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-inner-product-val" title="gimp_vector2_inner_product_val ()">gimp_vector2_inner_product_val</a>      (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector1,
 
75
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector2);
 
76
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-cross-product" title="gimp_vector2_cross_product ()">gimp_vector2_cross_product</a>          (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector1,
 
77
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector2);
 
78
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-cross-product-val" title="gimp_vector2_cross_product_val ()">gimp_vector2_cross_product_val</a>      (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector1,
 
79
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector2);
 
80
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-rotate" title="gimp_vector2_rotate ()">gimp_vector2_rotate</a>                 (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector,
 
81
                                                         gdouble alpha);
 
82
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-rotate-val" title="gimp_vector2_rotate_val ()">gimp_vector2_rotate_val</a>             (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector,
 
83
                                                         gdouble alpha);
 
84
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-new" title="gimp_vector3_new ()">gimp_vector3_new</a>                    (gdouble x,
 
85
                                                         gdouble y,
 
86
                                                         gdouble z);
 
87
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-set" title="gimp_vector3_set ()">gimp_vector3_set</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector,
 
88
                                                         gdouble x,
 
89
                                                         gdouble y,
 
90
                                                         gdouble z);
 
91
gdouble             <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-length" title="gimp_vector3_length ()">gimp_vector3_length</a>                 (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector);
 
92
gdouble             <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-length-val" title="gimp_vector3_length_val ()">gimp_vector3_length_val</a>             (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector);
 
93
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-mul" title="gimp_vector3_mul ()">gimp_vector3_mul</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector,
 
94
                                                         gdouble factor);
 
95
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-mul-val" title="gimp_vector3_mul_val ()">gimp_vector3_mul_val</a>                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector,
 
96
                                                         gdouble factor);
 
97
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-normalize" title="gimp_vector3_normalize ()">gimp_vector3_normalize</a>              (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector);
 
98
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-normalize-val" title="gimp_vector3_normalize_val ()">gimp_vector3_normalize_val</a>          (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector);
 
99
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-neg" title="gimp_vector3_neg ()">gimp_vector3_neg</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector);
 
100
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-neg-val" title="gimp_vector3_neg_val ()">gimp_vector3_neg_val</a>                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector);
 
101
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-add" title="gimp_vector3_add ()">gimp_vector3_add</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *result,
 
102
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector1,
 
103
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector2);
 
104
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-add-val" title="gimp_vector3_add_val ()">gimp_vector3_add_val</a>                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector1,
 
105
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector2);
 
106
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-sub" title="gimp_vector3_sub ()">gimp_vector3_sub</a>                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *result,
 
107
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector1,
 
108
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector2);
 
109
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-sub-val" title="gimp_vector3_sub_val ()">gimp_vector3_sub_val</a>                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector1,
 
110
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector2);
 
111
gdouble             <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-inner-product" title="gimp_vector3_inner_product ()">gimp_vector3_inner_product</a>          (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector1,
 
112
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector2);
 
113
gdouble             <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-inner-product-val" title="gimp_vector3_inner_product_val ()">gimp_vector3_inner_product_val</a>      (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector1,
 
114
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector2);
 
115
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-cross-product" title="gimp_vector3_cross_product ()">gimp_vector3_cross_product</a>          (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector1,
 
116
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector2);
 
117
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-cross-product-val" title="gimp_vector3_cross_product_val ()">gimp_vector3_cross_product_val</a>      (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector1,
 
118
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector2);
 
119
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-rotate" title="gimp_vector3_rotate ()">gimp_vector3_rotate</a>                 (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector,
 
120
                                                         gdouble alpha,
 
121
                                                         gdouble beta,
 
122
                                                         gdouble gamma);
 
123
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-rotate-val" title="gimp_vector3_rotate_val ()">gimp_vector3_rotate_val</a>             (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector,
 
124
                                                         gdouble alpha,
 
125
                                                         gdouble beta,
 
126
                                                         gdouble gamma);
 
127
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector-2d-to-3d" title="gimp_vector_2d_to_3d ()">gimp_vector_2d_to_3d</a>                (gint sx,
 
128
                                                         gint sy,
 
129
                                                         gint w,
 
130
                                                         gint h,
 
131
                                                         gint x,
 
132
                                                         gint y,
 
133
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vp,
 
134
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *p);
 
135
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         <a class="link" href="libgimpmath-GimpVector.html#gimp-vector-2d-to-3d-val" title="gimp_vector_2d_to_3d_val ()">gimp_vector_2d_to_3d_val</a>            (gint sx,
 
136
                                                         gint sy,
 
137
                                                         gint w,
 
138
                                                         gint h,
 
139
                                                         gint x,
 
140
                                                         gint y,
 
141
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vp,
 
142
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> p);
 
143
void                <a class="link" href="libgimpmath-GimpVector.html#gimp-vector-3d-to-2d" title="gimp_vector_3d_to_2d ()">gimp_vector_3d_to_2d</a>                (gint sx,
 
144
                                                         gint sy,
 
145
                                                         gint w,
 
146
                                                         gint h,
 
147
                                                         gdouble *x,
 
148
                                                         gdouble *y,
 
149
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vp,
 
150
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *p);
252
151
</pre>
253
152
</div>
254
153
<div class="refsect1" lang="en">
255
 
<a name="id2625103"></a><h2>Description</h2>
 
154
<a name="libgimpmath-GimpVector.description"></a><h2>Description</h2>
256
155
<p>
257
156
Utilities to set up and manipulate vectors.
258
157
 
259
158
</p>
260
159
</div>
261
160
<div class="refsect1" lang="en">
262
 
<a name="id2625120"></a><h2>Details</h2>
 
161
<a name="libgimpmath-GimpVector.details"></a><h2>Details</h2>
263
162
<div class="refsect2" lang="en">
264
 
<a name="id2625131"></a><h3>
265
 
<a name="GimpVector2"></a>GimpVector2</h3>
266
 
<a class="indexterm" name="id2625143"></a><pre class="programlisting">typedef struct {
 
163
<a name="GimpVector2"></a><h3>GimpVector2</h3>
 
164
<pre class="programlisting">typedef struct {
267
165
  gdouble x, y;
268
166
} GimpVector2;
269
167
</pre>
273
171
</div>
274
172
<hr>
275
173
<div class="refsect2" lang="en">
276
 
<a name="id2625159"></a><h3>
277
 
<a name="GimpVector3"></a>GimpVector3</h3>
278
 
<a class="indexterm" name="id2625171"></a><pre class="programlisting">typedef struct {
 
174
<a name="GimpVector3"></a><h3>GimpVector3</h3>
 
175
<pre class="programlisting">typedef struct {
279
176
  gdouble x, y, z;
280
177
} GimpVector3;
281
178
</pre>
285
182
</div>
286
183
<hr>
287
184
<div class="refsect2" lang="en">
288
 
<a name="id2625187"></a><h3>
289
 
<a name="GimpVector4"></a>GimpVector4</h3>
290
 
<a class="indexterm" name="id2625199"></a><pre class="programlisting">typedef struct {
 
185
<a name="GimpVector4"></a><h3>GimpVector4</h3>
 
186
<pre class="programlisting">typedef struct {
291
187
  gdouble x, y, z, w;
292
188
} GimpVector4;
293
189
</pre>
297
193
</div>
298
194
<hr>
299
195
<div class="refsect2" lang="en">
300
 
<a name="id2625216"></a><h3>
301
 
<a name="gimp-vector2-new"></a>gimp_vector2_new ()</h3>
302
 
<a class="indexterm" name="id2625228"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         gimp_vector2_new                    (<a
303
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
304
 
>gdouble</a> x,
305
 
                                                         <a
306
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
307
 
>gdouble</a> y);</pre>
 
196
<a name="gimp-vector2-new"></a><h3>gimp_vector2_new ()</h3>
 
197
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         gimp_vector2_new                    (gdouble x,
 
198
                                                         gdouble y);</pre>
308
199
<p>
309
 
Creates a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a> of coordinates <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>.</p>
 
200
Creates a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a> of coordinates <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>.</p>
310
201
<p>
311
202
 
312
203
</p>
314
205
<col align="left" valign="top">
315
206
<tbody>
316
207
<tr>
317
 
<td><p><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></p></td>
 
208
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
318
209
<td> the X coordinate.
319
210
</td>
320
211
</tr>
321
212
<tr>
322
 
<td><p><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></p></td>
 
213
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
323
214
<td> the Y coordinate.
324
215
</td>
325
216
</tr>
326
217
<tr>
327
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
328
 
<td> the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
218
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
219
<td> the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
329
220
</td>
330
221
</tr>
331
222
</tbody>
333
224
</div>
334
225
<hr>
335
226
<div class="refsect2" lang="en">
336
 
<a name="id2625337"></a><h3>
337
 
<a name="gimp-vector2-set"></a>gimp_vector2_set ()</h3>
338
 
<a class="indexterm" name="id2625349"></a><pre class="programlisting">void                gimp_vector2_set                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector,
339
 
                                                         <a
340
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
341
 
>gdouble</a> x,
342
 
                                                         <a
343
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
344
 
>gdouble</a> y);</pre>
 
227
<a name="gimp-vector2-set"></a><h3>gimp_vector2_set ()</h3>
 
228
<pre class="programlisting">void                gimp_vector2_set                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector,
 
229
                                                         gdouble x,
 
230
                                                         gdouble y);</pre>
345
231
<p>
346
232
Sets the X and Y coordinates of <em class="parameter"><code>vector</code></em> to <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>.</p>
347
233
<p>
351
237
<col align="left" valign="top">
352
238
<tbody>
353
239
<tr>
354
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
355
 
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
240
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
241
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
356
242
</td>
357
243
</tr>
358
244
<tr>
359
 
<td><p><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></p></td>
 
245
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
360
246
<td> the X coordinate.
361
247
</td>
362
248
</tr>
363
249
<tr>
364
 
<td><p><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></p></td>
 
250
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
365
251
<td> the Y coordinate.
366
252
</td>
367
253
</tr>
370
256
</div>
371
257
<hr>
372
258
<div class="refsect2" lang="en">
373
 
<a name="id2625467"></a><h3>
374
 
<a name="gimp-vector2-length"></a>gimp_vector2_length ()</h3>
375
 
<a class="indexterm" name="id2625480"></a><pre class="programlisting"><a
376
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
377
 
>gdouble</a>             gimp_vector2_length                 (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector);</pre>
 
259
<a name="gimp-vector2-length"></a><h3>gimp_vector2_length ()</h3>
 
260
<pre class="programlisting">gdouble             gimp_vector2_length                 (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector);</pre>
378
261
<p>
379
262
Computes the length of a 2D vector.</p>
380
263
<p>
384
267
<col align="left" valign="top">
385
268
<tbody>
386
269
<tr>
387
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
388
 
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
270
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
271
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
389
272
</td>
390
273
</tr>
391
274
<tr>
392
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
275
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
393
276
<td> the length of <em class="parameter"><code>vector</code></em> (a positive gdouble).
394
277
</td>
395
278
</tr>
398
281
</div>
399
282
<hr>
400
283
<div class="refsect2" lang="en">
401
 
<a name="id2625553"></a><h3>
402
 
<a name="gimp-vector2-length-val"></a>gimp_vector2_length_val ()</h3>
403
 
<a class="indexterm" name="id2625564"></a><pre class="programlisting"><a
404
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
405
 
>gdouble</a>             gimp_vector2_length_val             (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector);</pre>
 
284
<a name="gimp-vector2-length-val"></a><h3>gimp_vector2_length_val ()</h3>
 
285
<pre class="programlisting">gdouble             gimp_vector2_length_val             (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector);</pre>
406
286
<p>
407
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-length"><code class="function">gimp_vector2_length()</code></a> but the
 
287
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-length" title="gimp_vector2_length ()"><code class="function">gimp_vector2_length()</code></a> but the
408
288
vector is passed by value rather than by reference.</p>
409
289
<p>
410
290
 
413
293
<col align="left" valign="top">
414
294
<tbody>
415
295
<tr>
416
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
417
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
296
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
297
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
418
298
</td>
419
299
</tr>
420
300
<tr>
421
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
301
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
422
302
<td> the length of <em class="parameter"><code>vector</code></em> (a positive gdouble).
423
303
</td>
424
304
</tr>
427
307
</div>
428
308
<hr>
429
309
<div class="refsect2" lang="en">
430
 
<a name="id2625647"></a><h3>
431
 
<a name="gimp-vector2-mul"></a>gimp_vector2_mul ()</h3>
432
 
<a class="indexterm" name="id2625660"></a><pre class="programlisting">void                gimp_vector2_mul                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector,
433
 
                                                         <a
434
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
435
 
>gdouble</a> factor);</pre>
 
310
<a name="gimp-vector2-mul"></a><h3>gimp_vector2_mul ()</h3>
 
311
<pre class="programlisting">void                gimp_vector2_mul                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector,
 
312
                                                         gdouble factor);</pre>
436
313
<p>
437
314
Multiplies each component of the <em class="parameter"><code>vector</code></em> by <em class="parameter"><code>factor</code></em>. Note that this
438
315
is equivalent to multiplying the vectors length by <em class="parameter"><code>factor</code></em>.</p>
443
320
<col align="left" valign="top">
444
321
<tbody>
445
322
<tr>
446
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
447
 
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
323
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
324
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
448
325
</td>
449
326
</tr>
450
327
<tr>
451
 
<td><p><span class="term"><em class="parameter"><code>factor</code></em>&#160;:</span></p></td>
 
328
<td><p><span class="term"><em class="parameter"><code>factor</code></em> :</span></p></td>
452
329
<td> a scalar.
453
330
</td>
454
331
</tr>
457
334
</div>
458
335
<hr>
459
336
<div class="refsect2" lang="en">
460
 
<a name="id2625757"></a><h3>
461
 
<a name="gimp-vector2-mul-val"></a>gimp_vector2_mul_val ()</h3>
462
 
<a class="indexterm" name="id2625769"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         gimp_vector2_mul_val                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector,
463
 
                                                         <a
464
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
465
 
>gdouble</a> factor);</pre>
 
337
<a name="gimp-vector2-mul-val"></a><h3>gimp_vector2_mul_val ()</h3>
 
338
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         gimp_vector2_mul_val                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector,
 
339
                                                         gdouble factor);</pre>
466
340
<p>
467
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-mul"><code class="function">gimp_vector2_mul()</code></a> but the vector is
 
341
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-mul" title="gimp_vector2_mul ()"><code class="function">gimp_vector2_mul()</code></a> but the vector is
468
342
passed by value rather than by reference.</p>
469
343
<p>
470
344
 
473
347
<col align="left" valign="top">
474
348
<tbody>
475
349
<tr>
476
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
477
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
350
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
351
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
478
352
</td>
479
353
</tr>
480
354
<tr>
481
 
<td><p><span class="term"><em class="parameter"><code>factor</code></em>&#160;:</span></p></td>
 
355
<td><p><span class="term"><em class="parameter"><code>factor</code></em> :</span></p></td>
482
356
<td> a scalar.
483
357
</td>
484
358
</tr>
485
359
<tr>
486
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
487
 
<td> the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
360
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
361
<td> the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
488
362
</td>
489
363
</tr>
490
364
</tbody>
492
366
</div>
493
367
<hr>
494
368
<div class="refsect2" lang="en">
495
 
<a name="id2625875"></a><h3>
496
 
<a name="gimp-vector2-normalize"></a>gimp_vector2_normalize ()</h3>
497
 
<a class="indexterm" name="id2625886"></a><pre class="programlisting">void                gimp_vector2_normalize              (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector);</pre>
 
369
<a name="gimp-vector2-normalize"></a><h3>gimp_vector2_normalize ()</h3>
 
370
<pre class="programlisting">void                gimp_vector2_normalize              (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector);</pre>
498
371
<p>
499
372
Normalizes the <em class="parameter"><code>vector</code></em> so the length of the <em class="parameter"><code>vector</code></em> is 1.0. The nul
500
373
vector will not be changed.</p>
504
377
<div class="variablelist"><table border="0">
505
378
<col align="left" valign="top">
506
379
<tbody><tr>
507
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
508
 
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
380
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
381
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
509
382
</td>
510
383
</tr></tbody>
511
384
</table></div>
512
385
</div>
513
386
<hr>
514
387
<div class="refsect2" lang="en">
515
 
<a name="id2625955"></a><h3>
516
 
<a name="gimp-vector2-normalize-val"></a>gimp_vector2_normalize_val ()</h3>
517
 
<a class="indexterm" name="id2625967"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         gimp_vector2_normalize_val          (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector);</pre>
 
388
<a name="gimp-vector2-normalize-val"></a><h3>gimp_vector2_normalize_val ()</h3>
 
389
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         gimp_vector2_normalize_val          (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector);</pre>
518
390
<p>
519
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-normalize"><code class="function">gimp_vector2_normalize()</code></a> but the
 
391
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-normalize" title="gimp_vector2_normalize ()"><code class="function">gimp_vector2_normalize()</code></a> but the
520
392
vector is passed by value rather than by reference.</p>
521
393
<p>
522
394
 
525
397
<col align="left" valign="top">
526
398
<tbody>
527
399
<tr>
528
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
529
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
400
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
401
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
530
402
</td>
531
403
</tr>
532
404
<tr>
533
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
534
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a> parallel to <em class="parameter"><code>vector</code></em>, pointing in the same
 
405
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
406
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a> parallel to <em class="parameter"><code>vector</code></em>, pointing in the same
535
407
direction but with a length of 1.0.
536
408
</td>
537
409
</tr>
540
412
</div>
541
413
<hr>
542
414
<div class="refsect2" lang="en">
543
 
<a name="id2626058"></a><h3>
544
 
<a name="gimp-vector2-neg"></a>gimp_vector2_neg ()</h3>
545
 
<a class="indexterm" name="id2626071"></a><pre class="programlisting">void                gimp_vector2_neg                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector);</pre>
 
415
<a name="gimp-vector2-neg"></a><h3>gimp_vector2_neg ()</h3>
 
416
<pre class="programlisting">void                gimp_vector2_neg                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector);</pre>
546
417
<p>
547
418
Negates the <em class="parameter"><code>vector</code></em> (i.e. negate all its coordinates).</p>
548
419
<p>
551
422
<div class="variablelist"><table border="0">
552
423
<col align="left" valign="top">
553
424
<tbody><tr>
554
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
555
 
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
425
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
426
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
556
427
</td>
557
428
</tr></tbody>
558
429
</table></div>
559
430
</div>
560
431
<hr>
561
432
<div class="refsect2" lang="en">
562
 
<a name="id2626134"></a><h3>
563
 
<a name="gimp-vector2-neg-val"></a>gimp_vector2_neg_val ()</h3>
564
 
<a class="indexterm" name="id2626146"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         gimp_vector2_neg_val                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector);</pre>
 
433
<a name="gimp-vector2-neg-val"></a><h3>gimp_vector2_neg_val ()</h3>
 
434
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         gimp_vector2_neg_val                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector);</pre>
565
435
<p>
566
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-neg"><code class="function">gimp_vector2_neg()</code></a> but the vector
 
436
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-neg" title="gimp_vector2_neg ()"><code class="function">gimp_vector2_neg()</code></a> but the vector
567
437
is passed by value rather than by reference.</p>
568
438
<p>
569
439
 
572
442
<col align="left" valign="top">
573
443
<tbody>
574
444
<tr>
575
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
576
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
445
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
446
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
577
447
</td>
578
448
</tr>
579
449
<tr>
580
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
581
 
<td> the negated <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
450
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
451
<td> the negated <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
582
452
</td>
583
453
</tr>
584
454
</tbody>
586
456
</div>
587
457
<hr>
588
458
<div class="refsect2" lang="en">
589
 
<a name="id2626231"></a><h3>
590
 
<a name="gimp-vector2-add"></a>gimp_vector2_add ()</h3>
591
 
<a class="indexterm" name="id2626243"></a><pre class="programlisting">void                gimp_vector2_add                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *result,
592
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector1,
593
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector2);</pre>
 
459
<a name="gimp-vector2-add"></a><h3>gimp_vector2_add ()</h3>
 
460
<pre class="programlisting">void                gimp_vector2_add                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *result,
 
461
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector1,
 
462
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector2);</pre>
594
463
<p>
595
 
Computes the sum of two 2D vectors. The resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a> is
 
464
Computes the sum of two 2D vectors. The resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a> is
596
465
stored in <em class="parameter"><code>result</code></em>.</p>
597
466
<p>
598
467
 
601
470
<col align="left" valign="top">
602
471
<tbody>
603
472
<tr>
604
 
<td><p><span class="term"><em class="parameter"><code>result</code></em>&#160;:</span></p></td>
605
 
<td> destination for the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
606
 
</td>
607
 
</tr>
608
 
<tr>
609
 
<td><p><span class="term"><em class="parameter"><code>vector1</code></em>&#160;:</span></p></td>
610
 
<td> a pointer to the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
611
 
</td>
612
 
</tr>
613
 
<tr>
614
 
<td><p><span class="term"><em class="parameter"><code>vector2</code></em>&#160;:</span></p></td>
615
 
<td> a pointer to the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
473
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
 
474
<td> destination for the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
 
475
</td>
 
476
</tr>
 
477
<tr>
 
478
<td><p><span class="term"><em class="parameter"><code>vector1</code></em> :</span></p></td>
 
479
<td> a pointer to the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
 
480
</td>
 
481
</tr>
 
482
<tr>
 
483
<td><p><span class="term"><em class="parameter"><code>vector2</code></em> :</span></p></td>
 
484
<td> a pointer to the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
616
485
</td>
617
486
</tr>
618
487
</tbody>
620
489
</div>
621
490
<hr>
622
491
<div class="refsect2" lang="en">
623
 
<a name="id2626371"></a><h3>
624
 
<a name="gimp-vector2-add-val"></a>gimp_vector2_add_val ()</h3>
625
 
<a class="indexterm" name="id2626382"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         gimp_vector2_add_val                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector1,
626
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector2);</pre>
 
492
<a name="gimp-vector2-add-val"></a><h3>gimp_vector2_add_val ()</h3>
 
493
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         gimp_vector2_add_val                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector1,
 
494
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector2);</pre>
627
495
<p>
628
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-add"><code class="function">gimp_vector2_add()</code></a> but the vectors
 
496
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-add" title="gimp_vector2_add ()"><code class="function">gimp_vector2_add()</code></a> but the vectors
629
497
are passed by value rather than by reference.</p>
630
498
<p>
631
499
 
634
502
<col align="left" valign="top">
635
503
<tbody>
636
504
<tr>
637
 
<td><p><span class="term"><em class="parameter"><code>vector1</code></em>&#160;:</span></p></td>
638
 
<td> the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
639
 
</td>
640
 
</tr>
641
 
<tr>
642
 
<td><p><span class="term"><em class="parameter"><code>vector2</code></em>&#160;:</span></p></td>
643
 
<td> the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
644
 
</td>
645
 
</tr>
646
 
<tr>
647
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
648
 
<td> the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
505
<td><p><span class="term"><em class="parameter"><code>vector1</code></em> :</span></p></td>
 
506
<td> the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
 
507
</td>
 
508
</tr>
 
509
<tr>
 
510
<td><p><span class="term"><em class="parameter"><code>vector2</code></em> :</span></p></td>
 
511
<td> the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
 
512
</td>
 
513
</tr>
 
514
<tr>
 
515
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
516
<td> the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
649
517
</td>
650
518
</tr>
651
519
</tbody>
653
521
</div>
654
522
<hr>
655
523
<div class="refsect2" lang="en">
656
 
<a name="id2626496"></a><h3>
657
 
<a name="gimp-vector2-sub"></a>gimp_vector2_sub ()</h3>
658
 
<a class="indexterm" name="id2626508"></a><pre class="programlisting">void                gimp_vector2_sub                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *result,
659
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector1,
660
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector2);</pre>
 
524
<a name="gimp-vector2-sub"></a><h3>gimp_vector2_sub ()</h3>
 
525
<pre class="programlisting">void                gimp_vector2_sub                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *result,
 
526
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector1,
 
527
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector2);</pre>
661
528
<p>
662
529
Computes the difference of two 2D vectors (<em class="parameter"><code>vector1</code></em> minus <em class="parameter"><code>vector2</code></em>).
663
 
The resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a> is stored in <em class="parameter"><code>result</code></em>.</p>
 
530
The resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a> is stored in <em class="parameter"><code>result</code></em>.</p>
664
531
<p>
665
532
 
666
533
</p>
668
535
<col align="left" valign="top">
669
536
<tbody>
670
537
<tr>
671
 
<td><p><span class="term"><em class="parameter"><code>result</code></em>&#160;:</span></p></td>
672
 
<td> the destination for the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
673
 
</td>
674
 
</tr>
675
 
<tr>
676
 
<td><p><span class="term"><em class="parameter"><code>vector1</code></em>&#160;:</span></p></td>
677
 
<td> a pointer to the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
678
 
</td>
679
 
</tr>
680
 
<tr>
681
 
<td><p><span class="term"><em class="parameter"><code>vector2</code></em>&#160;:</span></p></td>
682
 
<td> a pointer to the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
538
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
 
539
<td> the destination for the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
 
540
</td>
 
541
</tr>
 
542
<tr>
 
543
<td><p><span class="term"><em class="parameter"><code>vector1</code></em> :</span></p></td>
 
544
<td> a pointer to the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
 
545
</td>
 
546
</tr>
 
547
<tr>
 
548
<td><p><span class="term"><em class="parameter"><code>vector2</code></em> :</span></p></td>
 
549
<td> a pointer to the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
683
550
</td>
684
551
</tr>
685
552
</tbody>
687
554
</div>
688
555
<hr>
689
556
<div class="refsect2" lang="en">
690
 
<a name="id2626648"></a><h3>
691
 
<a name="gimp-vector2-sub-val"></a>gimp_vector2_sub_val ()</h3>
692
 
<a class="indexterm" name="id2626659"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         gimp_vector2_sub_val                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector1,
693
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector2);</pre>
 
557
<a name="gimp-vector2-sub-val"></a><h3>gimp_vector2_sub_val ()</h3>
 
558
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         gimp_vector2_sub_val                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector1,
 
559
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector2);</pre>
694
560
<p>
695
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-sub"><code class="function">gimp_vector2_sub()</code></a> but the vectors
 
561
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-sub" title="gimp_vector2_sub ()"><code class="function">gimp_vector2_sub()</code></a> but the vectors
696
562
are passed by value rather than by reference.</p>
697
563
<p>
698
564
 
701
567
<col align="left" valign="top">
702
568
<tbody>
703
569
<tr>
704
 
<td><p><span class="term"><em class="parameter"><code>vector1</code></em>&#160;:</span></p></td>
705
 
<td> the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
706
 
</td>
707
 
</tr>
708
 
<tr>
709
 
<td><p><span class="term"><em class="parameter"><code>vector2</code></em>&#160;:</span></p></td>
710
 
<td> the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
711
 
</td>
712
 
</tr>
713
 
<tr>
714
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
715
 
<td> the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
570
<td><p><span class="term"><em class="parameter"><code>vector1</code></em> :</span></p></td>
 
571
<td> the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
 
572
</td>
 
573
</tr>
 
574
<tr>
 
575
<td><p><span class="term"><em class="parameter"><code>vector2</code></em> :</span></p></td>
 
576
<td> the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
 
577
</td>
 
578
</tr>
 
579
<tr>
 
580
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
581
<td> the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
716
582
</td>
717
583
</tr>
718
584
</tbody>
720
586
</div>
721
587
<hr>
722
588
<div class="refsect2" lang="en">
723
 
<a name="id2612687"></a><h3>
724
 
<a name="gimp-vector2-inner-product"></a>gimp_vector2_inner_product ()</h3>
725
 
<a class="indexterm" name="id2626766"></a><pre class="programlisting"><a
726
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
727
 
>gdouble</a>             gimp_vector2_inner_product          (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector1,
728
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector2);</pre>
 
589
<a name="gimp-vector2-inner-product"></a><h3>gimp_vector2_inner_product ()</h3>
 
590
<pre class="programlisting">gdouble             gimp_vector2_inner_product          (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector1,
 
591
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector2);</pre>
729
592
<p>
730
593
Computes the inner (dot) product of two 2D vectors.
731
594
This product is zero if and only if the two vectors are orthognal.</p>
736
599
<col align="left" valign="top">
737
600
<tbody>
738
601
<tr>
739
 
<td><p><span class="term"><em class="parameter"><code>vector1</code></em>&#160;:</span></p></td>
740
 
<td> a pointer to the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
741
 
</td>
742
 
</tr>
743
 
<tr>
744
 
<td><p><span class="term"><em class="parameter"><code>vector2</code></em>&#160;:</span></p></td>
745
 
<td> a pointer to the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
746
 
</td>
747
 
</tr>
748
 
<tr>
749
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
602
<td><p><span class="term"><em class="parameter"><code>vector1</code></em> :</span></p></td>
 
603
<td> a pointer to the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
 
604
</td>
 
605
</tr>
 
606
<tr>
 
607
<td><p><span class="term"><em class="parameter"><code>vector2</code></em> :</span></p></td>
 
608
<td> a pointer to the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
 
609
</td>
 
610
</tr>
 
611
<tr>
 
612
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
750
613
<td> The inner product.
751
614
</td>
752
615
</tr>
755
618
</div>
756
619
<hr>
757
620
<div class="refsect2" lang="en">
758
 
<a name="id2626853"></a><h3>
759
 
<a name="gimp-vector2-inner-product-val"></a>gimp_vector2_inner_product_val ()</h3>
760
 
<a class="indexterm" name="id2626866"></a><pre class="programlisting"><a
761
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
762
 
>gdouble</a>             gimp_vector2_inner_product_val      (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector1,
763
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector2);</pre>
 
621
<a name="gimp-vector2-inner-product-val"></a><h3>gimp_vector2_inner_product_val ()</h3>
 
622
<pre class="programlisting">gdouble             gimp_vector2_inner_product_val      (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector1,
 
623
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector2);</pre>
764
624
<p>
765
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-inner-product"><code class="function">gimp_vector2_inner_product()</code></a> but the
 
625
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-inner-product" title="gimp_vector2_inner_product ()"><code class="function">gimp_vector2_inner_product()</code></a> but the
766
626
vectors are passed by value rather than by reference.</p>
767
627
<p>
768
628
 
771
631
<col align="left" valign="top">
772
632
<tbody>
773
633
<tr>
774
 
<td><p><span class="term"><em class="parameter"><code>vector1</code></em>&#160;:</span></p></td>
775
 
<td> the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
776
 
</td>
777
 
</tr>
778
 
<tr>
779
 
<td><p><span class="term"><em class="parameter"><code>vector2</code></em>&#160;:</span></p></td>
780
 
<td> the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
781
 
</td>
782
 
</tr>
783
 
<tr>
784
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
634
<td><p><span class="term"><em class="parameter"><code>vector1</code></em> :</span></p></td>
 
635
<td> the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
 
636
</td>
 
637
</tr>
 
638
<tr>
 
639
<td><p><span class="term"><em class="parameter"><code>vector2</code></em> :</span></p></td>
 
640
<td> the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
 
641
</td>
 
642
</tr>
 
643
<tr>
 
644
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
785
645
<td> The inner product.
786
646
</td>
787
647
</tr>
790
650
</div>
791
651
<hr>
792
652
<div class="refsect2" lang="en">
793
 
<a name="id2626962"></a><h3>
794
 
<a name="gimp-vector2-cross-product"></a>gimp_vector2_cross_product ()</h3>
795
 
<a class="indexterm" name="id2626973"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         gimp_vector2_cross_product          (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector1,
796
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector2);</pre>
 
653
<a name="gimp-vector2-cross-product"></a><h3>gimp_vector2_cross_product ()</h3>
 
654
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         gimp_vector2_cross_product          (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector1,
 
655
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector2);</pre>
797
656
<p>
798
657
Compute the cross product of two vectors. The result is a
799
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a> which is orthognal to both <em class="parameter"><code>vector1</code></em> and <em class="parameter"><code>vector2</code></em>. If
 
658
<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a> which is orthognal to both <em class="parameter"><code>vector1</code></em> and <em class="parameter"><code>vector2</code></em>. If
800
659
<em class="parameter"><code>vector1</code></em> and <em class="parameter"><code>vector2</code></em> are parallel, the result will be the nul
801
660
vector.
802
661
</p>
810
669
<col align="left" valign="top">
811
670
<tbody>
812
671
<tr>
813
 
<td><p><span class="term"><em class="parameter"><code>vector1</code></em>&#160;:</span></p></td>
814
 
<td> a pointer to the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
815
 
</td>
816
 
</tr>
817
 
<tr>
818
 
<td><p><span class="term"><em class="parameter"><code>vector2</code></em>&#160;:</span></p></td>
819
 
<td> a pointer to the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
820
 
</td>
821
 
</tr>
822
 
<tr>
823
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
672
<td><p><span class="term"><em class="parameter"><code>vector1</code></em> :</span></p></td>
 
673
<td> a pointer to the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
 
674
</td>
 
675
</tr>
 
676
<tr>
 
677
<td><p><span class="term"><em class="parameter"><code>vector2</code></em> :</span></p></td>
 
678
<td> a pointer to the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
 
679
</td>
 
680
</tr>
 
681
<tr>
 
682
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
824
683
<td> The cross product.
825
684
</td>
826
685
</tr>
829
688
</div>
830
689
<hr>
831
690
<div class="refsect2" lang="en">
832
 
<a name="id2627094"></a><h3>
833
 
<a name="gimp-vector2-cross-product-val"></a>gimp_vector2_cross_product_val ()</h3>
834
 
<a class="indexterm" name="id2627106"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         gimp_vector2_cross_product_val      (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector1,
835
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector2);</pre>
 
691
<a name="gimp-vector2-cross-product-val"></a><h3>gimp_vector2_cross_product_val ()</h3>
 
692
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         gimp_vector2_cross_product_val      (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector1,
 
693
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector2);</pre>
836
694
<p>
837
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-cross-product"><code class="function">gimp_vector2_cross_product()</code></a> but the
 
695
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-cross-product" title="gimp_vector2_cross_product ()"><code class="function">gimp_vector2_cross_product()</code></a> but the
838
696
vectors are passed by value rather than by reference.</p>
839
697
<p>
840
698
 
843
701
<col align="left" valign="top">
844
702
<tbody>
845
703
<tr>
846
 
<td><p><span class="term"><em class="parameter"><code>vector1</code></em>&#160;:</span></p></td>
847
 
<td> the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
848
 
</td>
849
 
</tr>
850
 
<tr>
851
 
<td><p><span class="term"><em class="parameter"><code>vector2</code></em>&#160;:</span></p></td>
852
 
<td> the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
853
 
</td>
854
 
</tr>
855
 
<tr>
856
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
704
<td><p><span class="term"><em class="parameter"><code>vector1</code></em> :</span></p></td>
 
705
<td> the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
 
706
</td>
 
707
</tr>
 
708
<tr>
 
709
<td><p><span class="term"><em class="parameter"><code>vector2</code></em> :</span></p></td>
 
710
<td> the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
 
711
</td>
 
712
</tr>
 
713
<tr>
 
714
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
857
715
<td> The cross product.
858
716
</td>
859
717
</tr>
862
720
</div>
863
721
<hr>
864
722
<div class="refsect2" lang="en">
865
 
<a name="id2627203"></a><h3>
866
 
<a name="gimp-vector2-rotate"></a>gimp_vector2_rotate ()</h3>
867
 
<a class="indexterm" name="id2627213"></a><pre class="programlisting">void                gimp_vector2_rotate                 (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> *vector,
868
 
                                                         <a
869
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
870
 
>gdouble</a> alpha);</pre>
 
723
<a name="gimp-vector2-rotate"></a><h3>gimp_vector2_rotate ()</h3>
 
724
<pre class="programlisting">void                gimp_vector2_rotate                 (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> *vector,
 
725
                                                         gdouble alpha);</pre>
871
726
<p>
872
727
Rotates the <em class="parameter"><code>vector</code></em> counterclockwise by <em class="parameter"><code>alpha</code></em> radians.</p>
873
728
<p>
877
732
<col align="left" valign="top">
878
733
<tbody>
879
734
<tr>
880
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
881
 
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
735
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
736
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
882
737
</td>
883
738
</tr>
884
739
<tr>
885
 
<td><p><span class="term"><em class="parameter"><code>alpha</code></em>&#160;:</span></p></td>
 
740
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
886
741
<td> an angle (in radians).
887
742
</td>
888
743
</tr>
891
746
</div>
892
747
<hr>
893
748
<div class="refsect2" lang="en">
894
 
<a name="id2627293"></a><h3>
895
 
<a name="gimp-vector2-rotate-val"></a>gimp_vector2_rotate_val ()</h3>
896
 
<a class="indexterm" name="id2627303"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a>         gimp_vector2_rotate_val             (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2">GimpVector2</a> vector,
897
 
                                                         <a
898
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
899
 
>gdouble</a> alpha);</pre>
 
749
<a name="gimp-vector2-rotate-val"></a><h3>gimp_vector2_rotate_val ()</h3>
 
750
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a>         gimp_vector2_rotate_val             (<a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2">GimpVector2</a> vector,
 
751
                                                         gdouble alpha);</pre>
900
752
<p>
901
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-rotate"><code class="function">gimp_vector2_rotate()</code></a> but the vector
 
753
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector2-rotate" title="gimp_vector2_rotate ()"><code class="function">gimp_vector2_rotate()</code></a> but the vector
902
754
is passed by value rather than by reference.</p>
903
755
<p>
904
756
 
907
759
<col align="left" valign="top">
908
760
<tbody>
909
761
<tr>
910
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
911
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a>.
 
762
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
763
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a>.
912
764
</td>
913
765
</tr>
914
766
<tr>
915
 
<td><p><span class="term"><em class="parameter"><code>alpha</code></em>&#160;:</span></p></td>
 
767
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
916
768
<td> an angle (in radians).
917
769
</td>
918
770
</tr>
919
771
<tr>
920
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
921
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2"><span class="type">GimpVector2</span></a> representing <em class="parameter"><code>vector</code></em> rotated by <em class="parameter"><code>alpha</code></em>
 
772
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
773
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector2" title="GimpVector2"><span class="type">GimpVector2</span></a> representing <em class="parameter"><code>vector</code></em> rotated by <em class="parameter"><code>alpha</code></em>
922
774
radians.
923
775
</td>
924
776
</tr>
927
779
</div>
928
780
<hr>
929
781
<div class="refsect2" lang="en">
930
 
<a name="id2627409"></a><h3>
931
 
<a name="gimp-vector3-new"></a>gimp_vector3_new ()</h3>
932
 
<a class="indexterm" name="id2627419"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         gimp_vector3_new                    (<a
933
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
934
 
>gdouble</a> x,
935
 
                                                         <a
936
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
937
 
>gdouble</a> y,
938
 
                                                         <a
939
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
940
 
>gdouble</a> z);</pre>
 
782
<a name="gimp-vector3-new"></a><h3>gimp_vector3_new ()</h3>
 
783
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         gimp_vector3_new                    (gdouble x,
 
784
                                                         gdouble y,
 
785
                                                         gdouble z);</pre>
941
786
<p>
942
 
Creates a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a> of coordinate <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em> and <em class="parameter"><code>z</code></em>.</p>
 
787
Creates a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a> of coordinate <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em> and <em class="parameter"><code>z</code></em>.</p>
943
788
<p>
944
789
 
945
790
</p>
947
792
<col align="left" valign="top">
948
793
<tbody>
949
794
<tr>
950
 
<td><p><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></p></td>
 
795
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
951
796
<td> the X coordinate.
952
797
</td>
953
798
</tr>
954
799
<tr>
955
 
<td><p><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></p></td>
 
800
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
956
801
<td> the Y coordinate.
957
802
</td>
958
803
</tr>
959
804
<tr>
960
 
<td><p><span class="term"><em class="parameter"><code>z</code></em>&#160;:</span></p></td>
 
805
<td><p><span class="term"><em class="parameter"><code>z</code></em> :</span></p></td>
961
806
<td> the Z coordinate.
962
807
</td>
963
808
</tr>
964
809
<tr>
965
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
966
 
<td> the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
810
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
811
<td> the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
967
812
</td>
968
813
</tr>
969
814
</tbody>
971
816
</div>
972
817
<hr>
973
818
<div class="refsect2" lang="en">
974
 
<a name="id2627539"></a><h3>
975
 
<a name="gimp-vector3-set"></a>gimp_vector3_set ()</h3>
976
 
<a class="indexterm" name="id2627550"></a><pre class="programlisting">void                gimp_vector3_set                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector,
977
 
                                                         <a
978
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
979
 
>gdouble</a> x,
980
 
                                                         <a
981
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
982
 
>gdouble</a> y,
983
 
                                                         <a
984
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
985
 
>gdouble</a> z);</pre>
 
819
<a name="gimp-vector3-set"></a><h3>gimp_vector3_set ()</h3>
 
820
<pre class="programlisting">void                gimp_vector3_set                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector,
 
821
                                                         gdouble x,
 
822
                                                         gdouble y,
 
823
                                                         gdouble z);</pre>
986
824
<p>
987
825
Sets the X, Y and Z coordinates of <em class="parameter"><code>vector</code></em> to <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em> and <em class="parameter"><code>z</code></em>.</p>
988
826
<p>
992
830
<col align="left" valign="top">
993
831
<tbody>
994
832
<tr>
995
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
996
 
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
833
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
834
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
997
835
</td>
998
836
</tr>
999
837
<tr>
1000
 
<td><p><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></p></td>
 
838
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
1001
839
<td> the X coordinate.
1002
840
</td>
1003
841
</tr>
1004
842
<tr>
1005
 
<td><p><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></p></td>
 
843
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
1006
844
<td> the Y coordinate.
1007
845
</td>
1008
846
</tr>
1009
847
<tr>
1010
 
<td><p><span class="term"><em class="parameter"><code>z</code></em>&#160;:</span></p></td>
 
848
<td><p><span class="term"><em class="parameter"><code>z</code></em> :</span></p></td>
1011
849
<td> the Z coordinate.
1012
850
</td>
1013
851
</tr>
1016
854
</div>
1017
855
<hr>
1018
856
<div class="refsect2" lang="en">
1019
 
<a name="id2627679"></a><h3>
1020
 
<a name="gimp-vector3-length"></a>gimp_vector3_length ()</h3>
1021
 
<a class="indexterm" name="id2627689"></a><pre class="programlisting"><a
1022
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1023
 
>gdouble</a>             gimp_vector3_length                 (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector);</pre>
 
857
<a name="gimp-vector3-length"></a><h3>gimp_vector3_length ()</h3>
 
858
<pre class="programlisting">gdouble             gimp_vector3_length                 (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector);</pre>
1024
859
<p>
1025
860
Computes the length of a 3D vector.</p>
1026
861
<p>
1030
865
<col align="left" valign="top">
1031
866
<tbody>
1032
867
<tr>
1033
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
1034
 
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
868
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
869
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
1035
870
</td>
1036
871
</tr>
1037
872
<tr>
1038
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
873
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1039
874
<td> the length of <em class="parameter"><code>vector</code></em> (a positive gdouble).
1040
875
</td>
1041
876
</tr>
1044
879
</div>
1045
880
<hr>
1046
881
<div class="refsect2" lang="en">
1047
 
<a name="id2627755"></a><h3>
1048
 
<a name="gimp-vector3-length-val"></a>gimp_vector3_length_val ()</h3>
1049
 
<a class="indexterm" name="id2627765"></a><pre class="programlisting"><a
1050
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1051
 
>gdouble</a>             gimp_vector3_length_val             (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector);</pre>
 
882
<a name="gimp-vector3-length-val"></a><h3>gimp_vector3_length_val ()</h3>
 
883
<pre class="programlisting">gdouble             gimp_vector3_length_val             (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector);</pre>
1052
884
<p>
1053
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-length"><code class="function">gimp_vector3_length()</code></a> but the vector
 
885
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-length" title="gimp_vector3_length ()"><code class="function">gimp_vector3_length()</code></a> but the vector
1054
886
is passed by value rather than by reference.</p>
1055
887
<p>
1056
888
 
1059
891
<col align="left" valign="top">
1060
892
<tbody>
1061
893
<tr>
1062
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
1063
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
894
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
895
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
1064
896
</td>
1065
897
</tr>
1066
898
<tr>
1067
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
899
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1068
900
<td> the length of <em class="parameter"><code>vector</code></em> (a positive gdouble).
1069
901
</td>
1070
902
</tr>
1073
905
</div>
1074
906
<hr>
1075
907
<div class="refsect2" lang="en">
1076
 
<a name="id2627840"></a><h3>
1077
 
<a name="gimp-vector3-mul"></a>gimp_vector3_mul ()</h3>
1078
 
<a class="indexterm" name="id2627851"></a><pre class="programlisting">void                gimp_vector3_mul                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector,
1079
 
                                                         <a
1080
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1081
 
>gdouble</a> factor);</pre>
 
908
<a name="gimp-vector3-mul"></a><h3>gimp_vector3_mul ()</h3>
 
909
<pre class="programlisting">void                gimp_vector3_mul                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector,
 
910
                                                         gdouble factor);</pre>
1082
911
<p>
1083
912
Multiplies each component of the <em class="parameter"><code>vector</code></em> by <em class="parameter"><code>factor</code></em>. Note that
1084
913
this is equivalent to multiplying the vectors length by <em class="parameter"><code>factor</code></em>.</p>
1089
918
<col align="left" valign="top">
1090
919
<tbody>
1091
920
<tr>
1092
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
1093
 
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
921
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
922
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
1094
923
</td>
1095
924
</tr>
1096
925
<tr>
1097
 
<td><p><span class="term"><em class="parameter"><code>factor</code></em>&#160;:</span></p></td>
 
926
<td><p><span class="term"><em class="parameter"><code>factor</code></em> :</span></p></td>
1098
927
<td> a scalar.
1099
928
</td>
1100
929
</tr>
1103
932
</div>
1104
933
<hr>
1105
934
<div class="refsect2" lang="en">
1106
 
<a name="id2627938"></a><h3>
1107
 
<a name="gimp-vector3-mul-val"></a>gimp_vector3_mul_val ()</h3>
1108
 
<a class="indexterm" name="id2627948"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         gimp_vector3_mul_val                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector,
1109
 
                                                         <a
1110
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1111
 
>gdouble</a> factor);</pre>
 
935
<a name="gimp-vector3-mul-val"></a><h3>gimp_vector3_mul_val ()</h3>
 
936
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         gimp_vector3_mul_val                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector,
 
937
                                                         gdouble factor);</pre>
1112
938
<p>
1113
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-mul"><code class="function">gimp_vector3_mul()</code></a> but the vector is
 
939
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-mul" title="gimp_vector3_mul ()"><code class="function">gimp_vector3_mul()</code></a> but the vector is
1114
940
passed by value rather than by reference.</p>
1115
941
<p>
1116
942
 
1119
945
<col align="left" valign="top">
1120
946
<tbody>
1121
947
<tr>
1122
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
1123
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
948
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
949
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
1124
950
</td>
1125
951
</tr>
1126
952
<tr>
1127
 
<td><p><span class="term"><em class="parameter"><code>factor</code></em>&#160;:</span></p></td>
 
953
<td><p><span class="term"><em class="parameter"><code>factor</code></em> :</span></p></td>
1128
954
<td> a scalar.
1129
955
</td>
1130
956
</tr>
1131
957
<tr>
1132
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1133
 
<td> the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
958
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
959
<td> the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
1134
960
</td>
1135
961
</tr>
1136
962
</tbody>
1138
964
</div>
1139
965
<hr>
1140
966
<div class="refsect2" lang="en">
1141
 
<a name="id2628043"></a><h3>
1142
 
<a name="gimp-vector3-normalize"></a>gimp_vector3_normalize ()</h3>
1143
 
<a class="indexterm" name="id2628054"></a><pre class="programlisting">void                gimp_vector3_normalize              (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector);</pre>
 
967
<a name="gimp-vector3-normalize"></a><h3>gimp_vector3_normalize ()</h3>
 
968
<pre class="programlisting">void                gimp_vector3_normalize              (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector);</pre>
1144
969
<p>
1145
970
Normalizes the <em class="parameter"><code>vector</code></em> so the length of the <em class="parameter"><code>vector</code></em> is 1.0. The nul
1146
971
vector will not be changed.</p>
1150
975
<div class="variablelist"><table border="0">
1151
976
<col align="left" valign="top">
1152
977
<tbody><tr>
1153
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
1154
 
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
978
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
979
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
1155
980
</td>
1156
981
</tr></tbody>
1157
982
</table></div>
1158
983
</div>
1159
984
<hr>
1160
985
<div class="refsect2" lang="en">
1161
 
<a name="id2628115"></a><h3>
1162
 
<a name="gimp-vector3-normalize-val"></a>gimp_vector3_normalize_val ()</h3>
1163
 
<a class="indexterm" name="id2628126"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         gimp_vector3_normalize_val          (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector);</pre>
 
986
<a name="gimp-vector3-normalize-val"></a><h3>gimp_vector3_normalize_val ()</h3>
 
987
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         gimp_vector3_normalize_val          (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector);</pre>
1164
988
<p>
1165
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-normalize"><code class="function">gimp_vector3_normalize()</code></a> but the
 
989
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-normalize" title="gimp_vector3_normalize ()"><code class="function">gimp_vector3_normalize()</code></a> but the
1166
990
vector is passed by value rather than by reference.</p>
1167
991
<p>
1168
992
 
1171
995
<col align="left" valign="top">
1172
996
<tbody>
1173
997
<tr>
1174
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
1175
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
998
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
999
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
1176
1000
</td>
1177
1001
</tr>
1178
1002
<tr>
1179
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1180
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a> parallel to <em class="parameter"><code>vector</code></em>, pointing in the same
 
1003
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1004
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a> parallel to <em class="parameter"><code>vector</code></em>, pointing in the same
1181
1005
direction but with a length of 1.0.
1182
1006
</td>
1183
1007
</tr>
1186
1010
</div>
1187
1011
<hr>
1188
1012
<div class="refsect2" lang="en">
1189
 
<a name="id2628209"></a><h3>
1190
 
<a name="gimp-vector3-neg"></a>gimp_vector3_neg ()</h3>
1191
 
<a class="indexterm" name="id2628219"></a><pre class="programlisting">void                gimp_vector3_neg                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector);</pre>
 
1013
<a name="gimp-vector3-neg"></a><h3>gimp_vector3_neg ()</h3>
 
1014
<pre class="programlisting">void                gimp_vector3_neg                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector);</pre>
1192
1015
<p>
1193
1016
Negates the <em class="parameter"><code>vector</code></em> (i.e. negate all its coordinates).</p>
1194
1017
<p>
1197
1020
<div class="variablelist"><table border="0">
1198
1021
<col align="left" valign="top">
1199
1022
<tbody><tr>
1200
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
1201
 
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
1023
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
1024
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
1202
1025
</td>
1203
1026
</tr></tbody>
1204
1027
</table></div>
1205
1028
</div>
1206
1029
<hr>
1207
1030
<div class="refsect2" lang="en">
1208
 
<a name="id2628275"></a><h3>
1209
 
<a name="gimp-vector3-neg-val"></a>gimp_vector3_neg_val ()</h3>
1210
 
<a class="indexterm" name="id2628286"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         gimp_vector3_neg_val                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector);</pre>
 
1031
<a name="gimp-vector3-neg-val"></a><h3>gimp_vector3_neg_val ()</h3>
 
1032
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         gimp_vector3_neg_val                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector);</pre>
1211
1033
<p>
1212
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-neg"><code class="function">gimp_vector3_neg()</code></a> but the vector
 
1034
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-neg" title="gimp_vector3_neg ()"><code class="function">gimp_vector3_neg()</code></a> but the vector
1213
1035
is passed by value rather than by reference.</p>
1214
1036
<p>
1215
1037
 
1218
1040
<col align="left" valign="top">
1219
1041
<tbody>
1220
1042
<tr>
1221
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
1222
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
1043
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
1044
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
1223
1045
</td>
1224
1046
</tr>
1225
1047
<tr>
1226
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1227
 
<td> the negated <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
1048
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1049
<td> the negated <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
1228
1050
</td>
1229
1051
</tr>
1230
1052
</tbody>
1232
1054
</div>
1233
1055
<hr>
1234
1056
<div class="refsect2" lang="en">
1235
 
<a name="id2628362"></a><h3>
1236
 
<a name="gimp-vector3-add"></a>gimp_vector3_add ()</h3>
1237
 
<a class="indexterm" name="id2628372"></a><pre class="programlisting">void                gimp_vector3_add                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *result,
1238
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector1,
1239
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector2);</pre>
 
1057
<a name="gimp-vector3-add"></a><h3>gimp_vector3_add ()</h3>
 
1058
<pre class="programlisting">void                gimp_vector3_add                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *result,
 
1059
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector1,
 
1060
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector2);</pre>
1240
1061
<p>
1241
 
Computes the sum of two 3D vectors. The resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a> is
 
1062
Computes the sum of two 3D vectors. The resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a> is
1242
1063
stored in <em class="parameter"><code>result</code></em>.</p>
1243
1064
<p>
1244
1065
 
1247
1068
<col align="left" valign="top">
1248
1069
<tbody>
1249
1070
<tr>
1250
 
<td><p><span class="term"><em class="parameter"><code>result</code></em>&#160;:</span></p></td>
1251
 
<td> destination for the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
1252
 
</td>
1253
 
</tr>
1254
 
<tr>
1255
 
<td><p><span class="term"><em class="parameter"><code>vector1</code></em>&#160;:</span></p></td>
1256
 
<td> a pointer to the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
1257
 
</td>
1258
 
</tr>
1259
 
<tr>
1260
 
<td><p><span class="term"><em class="parameter"><code>vector2</code></em>&#160;:</span></p></td>
1261
 
<td> a pointer to the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
1071
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
 
1072
<td> destination for the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
 
1073
</td>
 
1074
</tr>
 
1075
<tr>
 
1076
<td><p><span class="term"><em class="parameter"><code>vector1</code></em> :</span></p></td>
 
1077
<td> a pointer to the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
 
1078
</td>
 
1079
</tr>
 
1080
<tr>
 
1081
<td><p><span class="term"><em class="parameter"><code>vector2</code></em> :</span></p></td>
 
1082
<td> a pointer to the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
1262
1083
</td>
1263
1084
</tr>
1264
1085
</tbody>
1266
1087
</div>
1267
1088
<hr>
1268
1089
<div class="refsect2" lang="en">
1269
 
<a name="id2628486"></a><h3>
1270
 
<a name="gimp-vector3-add-val"></a>gimp_vector3_add_val ()</h3>
1271
 
<a class="indexterm" name="id2628497"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         gimp_vector3_add_val                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector1,
1272
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector2);</pre>
 
1090
<a name="gimp-vector3-add-val"></a><h3>gimp_vector3_add_val ()</h3>
 
1091
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         gimp_vector3_add_val                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector1,
 
1092
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector2);</pre>
1273
1093
<p>
1274
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-add"><code class="function">gimp_vector3_add()</code></a> but the vectors
 
1094
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-add" title="gimp_vector3_add ()"><code class="function">gimp_vector3_add()</code></a> but the vectors
1275
1095
are passed by value rather than by reference.</p>
1276
1096
<p>
1277
1097
 
1280
1100
<col align="left" valign="top">
1281
1101
<tbody>
1282
1102
<tr>
1283
 
<td><p><span class="term"><em class="parameter"><code>vector1</code></em>&#160;:</span></p></td>
1284
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
1285
 
</td>
1286
 
</tr>
1287
 
<tr>
1288
 
<td><p><span class="term"><em class="parameter"><code>vector2</code></em>&#160;:</span></p></td>
1289
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
1290
 
</td>
1291
 
</tr>
1292
 
<tr>
1293
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1294
 
<td> the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
1103
<td><p><span class="term"><em class="parameter"><code>vector1</code></em> :</span></p></td>
 
1104
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
 
1105
</td>
 
1106
</tr>
 
1107
<tr>
 
1108
<td><p><span class="term"><em class="parameter"><code>vector2</code></em> :</span></p></td>
 
1109
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
 
1110
</td>
 
1111
</tr>
 
1112
<tr>
 
1113
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1114
<td> the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
1295
1115
</td>
1296
1116
</tr>
1297
1117
</tbody>
1299
1119
</div>
1300
1120
<hr>
1301
1121
<div class="refsect2" lang="en">
1302
 
<a name="id2628598"></a><h3>
1303
 
<a name="gimp-vector3-sub"></a>gimp_vector3_sub ()</h3>
1304
 
<a class="indexterm" name="id2628609"></a><pre class="programlisting">void                gimp_vector3_sub                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *result,
1305
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector1,
1306
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector2);</pre>
 
1122
<a name="gimp-vector3-sub"></a><h3>gimp_vector3_sub ()</h3>
 
1123
<pre class="programlisting">void                gimp_vector3_sub                    (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *result,
 
1124
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector1,
 
1125
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector2);</pre>
1307
1126
<p>
1308
1127
Computes the difference of two 3D vectors (<em class="parameter"><code>vector1</code></em> minus <em class="parameter"><code>vector2</code></em>).
1309
 
The resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a> is stored in <em class="parameter"><code>result</code></em>.</p>
 
1128
The resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a> is stored in <em class="parameter"><code>result</code></em>.</p>
1310
1129
<p>
1311
1130
 
1312
1131
</p>
1314
1133
<col align="left" valign="top">
1315
1134
<tbody>
1316
1135
<tr>
1317
 
<td><p><span class="term"><em class="parameter"><code>result</code></em>&#160;:</span></p></td>
1318
 
<td> the destination for the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
1319
 
</td>
1320
 
</tr>
1321
 
<tr>
1322
 
<td><p><span class="term"><em class="parameter"><code>vector1</code></em>&#160;:</span></p></td>
1323
 
<td> a pointer to the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
1324
 
</td>
1325
 
</tr>
1326
 
<tr>
1327
 
<td><p><span class="term"><em class="parameter"><code>vector2</code></em>&#160;:</span></p></td>
1328
 
<td> a pointer to the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
1136
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
 
1137
<td> the destination for the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
 
1138
</td>
 
1139
</tr>
 
1140
<tr>
 
1141
<td><p><span class="term"><em class="parameter"><code>vector1</code></em> :</span></p></td>
 
1142
<td> a pointer to the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
 
1143
</td>
 
1144
</tr>
 
1145
<tr>
 
1146
<td><p><span class="term"><em class="parameter"><code>vector2</code></em> :</span></p></td>
 
1147
<td> a pointer to the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
1329
1148
</td>
1330
1149
</tr>
1331
1150
</tbody>
1333
1152
</div>
1334
1153
<hr>
1335
1154
<div class="refsect2" lang="en">
1336
 
<a name="id2628733"></a><h3>
1337
 
<a name="gimp-vector3-sub-val"></a>gimp_vector3_sub_val ()</h3>
1338
 
<a class="indexterm" name="id2628744"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         gimp_vector3_sub_val                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector1,
1339
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector2);</pre>
 
1155
<a name="gimp-vector3-sub-val"></a><h3>gimp_vector3_sub_val ()</h3>
 
1156
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         gimp_vector3_sub_val                (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector1,
 
1157
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector2);</pre>
1340
1158
<p>
1341
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-sub"><code class="function">gimp_vector3_sub()</code></a> but the vectors
 
1159
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-sub" title="gimp_vector3_sub ()"><code class="function">gimp_vector3_sub()</code></a> but the vectors
1342
1160
are passed by value rather than by reference.</p>
1343
1161
<p>
1344
1162
 
1347
1165
<col align="left" valign="top">
1348
1166
<tbody>
1349
1167
<tr>
1350
 
<td><p><span class="term"><em class="parameter"><code>vector1</code></em>&#160;:</span></p></td>
1351
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
1352
 
</td>
1353
 
</tr>
1354
 
<tr>
1355
 
<td><p><span class="term"><em class="parameter"><code>vector2</code></em>&#160;:</span></p></td>
1356
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
1357
 
</td>
1358
 
</tr>
1359
 
<tr>
1360
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1361
 
<td> the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
1168
<td><p><span class="term"><em class="parameter"><code>vector1</code></em> :</span></p></td>
 
1169
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
 
1170
</td>
 
1171
</tr>
 
1172
<tr>
 
1173
<td><p><span class="term"><em class="parameter"><code>vector2</code></em> :</span></p></td>
 
1174
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
 
1175
</td>
 
1176
</tr>
 
1177
<tr>
 
1178
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1179
<td> the resulting <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
1362
1180
</td>
1363
1181
</tr>
1364
1182
</tbody>
1366
1184
</div>
1367
1185
<hr>
1368
1186
<div class="refsect2" lang="en">
1369
 
<a name="id2628845"></a><h3>
1370
 
<a name="gimp-vector3-inner-product"></a>gimp_vector3_inner_product ()</h3>
1371
 
<a class="indexterm" name="id2628856"></a><pre class="programlisting"><a
1372
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1373
 
>gdouble</a>             gimp_vector3_inner_product          (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector1,
1374
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector2);</pre>
 
1187
<a name="gimp-vector3-inner-product"></a><h3>gimp_vector3_inner_product ()</h3>
 
1188
<pre class="programlisting">gdouble             gimp_vector3_inner_product          (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector1,
 
1189
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector2);</pre>
1375
1190
<p>
1376
1191
Computes the inner (dot) product of two 3D vectors. This product
1377
1192
is zero if and only if the two vectors are orthognal.</p>
1382
1197
<col align="left" valign="top">
1383
1198
<tbody>
1384
1199
<tr>
1385
 
<td><p><span class="term"><em class="parameter"><code>vector1</code></em>&#160;:</span></p></td>
1386
 
<td> a pointer to the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
1387
 
</td>
1388
 
</tr>
1389
 
<tr>
1390
 
<td><p><span class="term"><em class="parameter"><code>vector2</code></em>&#160;:</span></p></td>
1391
 
<td> a pointer to the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
1392
 
</td>
1393
 
</tr>
1394
 
<tr>
1395
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1200
<td><p><span class="term"><em class="parameter"><code>vector1</code></em> :</span></p></td>
 
1201
<td> a pointer to the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
 
1202
</td>
 
1203
</tr>
 
1204
<tr>
 
1205
<td><p><span class="term"><em class="parameter"><code>vector2</code></em> :</span></p></td>
 
1206
<td> a pointer to the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
 
1207
</td>
 
1208
</tr>
 
1209
<tr>
 
1210
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1396
1211
<td> The inner product.
1397
1212
</td>
1398
1213
</tr>
1401
1216
</div>
1402
1217
<hr>
1403
1218
<div class="refsect2" lang="en">
1404
 
<a name="id2628944"></a><h3>
1405
 
<a name="gimp-vector3-inner-product-val"></a>gimp_vector3_inner_product_val ()</h3>
1406
 
<a class="indexterm" name="id2628957"></a><pre class="programlisting"><a
1407
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1408
 
>gdouble</a>             gimp_vector3_inner_product_val      (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector1,
1409
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector2);</pre>
 
1219
<a name="gimp-vector3-inner-product-val"></a><h3>gimp_vector3_inner_product_val ()</h3>
 
1220
<pre class="programlisting">gdouble             gimp_vector3_inner_product_val      (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector1,
 
1221
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector2);</pre>
1410
1222
<p>
1411
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-inner-product"><code class="function">gimp_vector3_inner_product()</code></a> but the
 
1223
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-inner-product" title="gimp_vector3_inner_product ()"><code class="function">gimp_vector3_inner_product()</code></a> but the
1412
1224
vectors are passed by value rather than by reference.</p>
1413
1225
<p>
1414
1226
 
1417
1229
<col align="left" valign="top">
1418
1230
<tbody>
1419
1231
<tr>
1420
 
<td><p><span class="term"><em class="parameter"><code>vector1</code></em>&#160;:</span></p></td>
1421
 
<td> the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
1422
 
</td>
1423
 
</tr>
1424
 
<tr>
1425
 
<td><p><span class="term"><em class="parameter"><code>vector2</code></em>&#160;:</span></p></td>
1426
 
<td> the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
1427
 
</td>
1428
 
</tr>
1429
 
<tr>
1430
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1232
<td><p><span class="term"><em class="parameter"><code>vector1</code></em> :</span></p></td>
 
1233
<td> the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
 
1234
</td>
 
1235
</tr>
 
1236
<tr>
 
1237
<td><p><span class="term"><em class="parameter"><code>vector2</code></em> :</span></p></td>
 
1238
<td> the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
 
1239
</td>
 
1240
</tr>
 
1241
<tr>
 
1242
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1431
1243
<td> The inner product.
1432
1244
</td>
1433
1245
</tr>
1436
1248
</div>
1437
1249
<hr>
1438
1250
<div class="refsect2" lang="en">
1439
 
<a name="id2629065"></a><h3>
1440
 
<a name="gimp-vector3-cross-product"></a>gimp_vector3_cross_product ()</h3>
1441
 
<a class="indexterm" name="id2629079"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         gimp_vector3_cross_product          (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector1,
1442
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector2);</pre>
 
1251
<a name="gimp-vector3-cross-product"></a><h3>gimp_vector3_cross_product ()</h3>
 
1252
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         gimp_vector3_cross_product          (const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector1,
 
1253
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector2);</pre>
1443
1254
<p>
1444
1255
Compute the cross product of two vectors. The result is a
1445
 
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a> which is orthognal to both <em class="parameter"><code>vector1</code></em> and <em class="parameter"><code>vector2</code></em>. If
 
1256
<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a> which is orthognal to both <em class="parameter"><code>vector1</code></em> and <em class="parameter"><code>vector2</code></em>. If
1446
1257
<em class="parameter"><code>vector1</code></em> and <em class="parameter"><code>vector2</code></em> and parallel, the result will be the nul
1447
1258
vector.
1448
1259
</p>
1456
1267
<col align="left" valign="top">
1457
1268
<tbody>
1458
1269
<tr>
1459
 
<td><p><span class="term"><em class="parameter"><code>vector1</code></em>&#160;:</span></p></td>
1460
 
<td> a pointer to the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
1461
 
</td>
1462
 
</tr>
1463
 
<tr>
1464
 
<td><p><span class="term"><em class="parameter"><code>vector2</code></em>&#160;:</span></p></td>
1465
 
<td> a pointer to the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
1466
 
</td>
1467
 
</tr>
1468
 
<tr>
1469
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1270
<td><p><span class="term"><em class="parameter"><code>vector1</code></em> :</span></p></td>
 
1271
<td> a pointer to the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
 
1272
</td>
 
1273
</tr>
 
1274
<tr>
 
1275
<td><p><span class="term"><em class="parameter"><code>vector2</code></em> :</span></p></td>
 
1276
<td> a pointer to the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
 
1277
</td>
 
1278
</tr>
 
1279
<tr>
 
1280
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1470
1281
<td> The cross product.
1471
1282
</td>
1472
1283
</tr>
1475
1286
</div>
1476
1287
<hr>
1477
1288
<div class="refsect2" lang="en">
1478
 
<a name="id2629225"></a><h3>
1479
 
<a name="gimp-vector3-cross-product-val"></a>gimp_vector3_cross_product_val ()</h3>
1480
 
<a class="indexterm" name="id2629239"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         gimp_vector3_cross_product_val      (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector1,
1481
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector2);</pre>
 
1289
<a name="gimp-vector3-cross-product-val"></a><h3>gimp_vector3_cross_product_val ()</h3>
 
1290
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         gimp_vector3_cross_product_val      (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector1,
 
1291
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector2);</pre>
1482
1292
<p>
1483
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-cross-product"><code class="function">gimp_vector3_cross_product()</code></a> but the
 
1293
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-cross-product" title="gimp_vector3_cross_product ()"><code class="function">gimp_vector3_cross_product()</code></a> but the
1484
1294
vectors are passed by value rather than by reference.</p>
1485
1295
<p>
1486
1296
 
1489
1299
<col align="left" valign="top">
1490
1300
<tbody>
1491
1301
<tr>
1492
 
<td><p><span class="term"><em class="parameter"><code>vector1</code></em>&#160;:</span></p></td>
1493
 
<td> the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
1494
 
</td>
1495
 
</tr>
1496
 
<tr>
1497
 
<td><p><span class="term"><em class="parameter"><code>vector2</code></em>&#160;:</span></p></td>
1498
 
<td> the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
1499
 
</td>
1500
 
</tr>
1501
 
<tr>
1502
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1302
<td><p><span class="term"><em class="parameter"><code>vector1</code></em> :</span></p></td>
 
1303
<td> the first <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
 
1304
</td>
 
1305
</tr>
 
1306
<tr>
 
1307
<td><p><span class="term"><em class="parameter"><code>vector2</code></em> :</span></p></td>
 
1308
<td> the second <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
 
1309
</td>
 
1310
</tr>
 
1311
<tr>
 
1312
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1503
1313
<td> The cross product.
1504
1314
</td>
1505
1315
</tr>
1508
1318
</div>
1509
1319
<hr>
1510
1320
<div class="refsect2" lang="en">
1511
 
<a name="id2629347"></a><h3>
1512
 
<a name="gimp-vector3-rotate"></a>gimp_vector3_rotate ()</h3>
1513
 
<a class="indexterm" name="id2629360"></a><pre class="programlisting">void                gimp_vector3_rotate                 (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vector,
1514
 
                                                         <a
1515
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1516
 
>gdouble</a> alpha,
1517
 
                                                         <a
1518
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1519
 
>gdouble</a> beta,
1520
 
                                                         <a
1521
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1522
 
>gdouble</a> gamma);</pre>
 
1321
<a name="gimp-vector3-rotate"></a><h3>gimp_vector3_rotate ()</h3>
 
1322
<pre class="programlisting">void                gimp_vector3_rotate                 (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vector,
 
1323
                                                         gdouble alpha,
 
1324
                                                         gdouble beta,
 
1325
                                                         gdouble gamma);</pre>
1523
1326
<p>
1524
1327
Rotates the <em class="parameter"><code>vector</code></em> around the three axis (Z, Y, and X) by <em class="parameter"><code>alpha</code></em>,
1525
1328
<em class="parameter"><code>beta</code></em> and <em class="parameter"><code>gamma</code></em>, respectively.
1536
1339
<col align="left" valign="top">
1537
1340
<tbody>
1538
1341
<tr>
1539
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
1540
 
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
1342
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
1343
<td> a pointer to a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
1541
1344
</td>
1542
1345
</tr>
1543
1346
<tr>
1544
 
<td><p><span class="term"><em class="parameter"><code>alpha</code></em>&#160;:</span></p></td>
 
1347
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
1545
1348
<td> the angle (in radian) of rotation around the Z axis.
1546
1349
</td>
1547
1350
</tr>
1548
1351
<tr>
1549
 
<td><p><span class="term"><em class="parameter"><code>beta</code></em>&#160;:</span></p></td>
 
1352
<td><p><span class="term"><em class="parameter"><code>beta</code></em> :</span></p></td>
1550
1353
<td> the angle (in radian) of rotation around the Y axis.
1551
1354
</td>
1552
1355
</tr>
1553
1356
<tr>
1554
 
<td><p><span class="term"><em class="parameter"><code>gamma</code></em>&#160;:</span></p></td>
 
1357
<td><p><span class="term"><em class="parameter"><code>gamma</code></em> :</span></p></td>
1555
1358
<td> the angle (in radian) of rotation around the X axis.
1556
1359
</td>
1557
1360
</tr>
1560
1363
</div>
1561
1364
<hr>
1562
1365
<div class="refsect2" lang="en">
1563
 
<a name="id2629533"></a><h3>
1564
 
<a name="gimp-vector3-rotate-val"></a>gimp_vector3_rotate_val ()</h3>
1565
 
<a class="indexterm" name="id2629546"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         gimp_vector3_rotate_val             (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vector,
1566
 
                                                         <a
1567
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1568
 
>gdouble</a> alpha,
1569
 
                                                         <a
1570
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1571
 
>gdouble</a> beta,
1572
 
                                                         <a
1573
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1574
 
>gdouble</a> gamma);</pre>
 
1366
<a name="gimp-vector3-rotate-val"></a><h3>gimp_vector3_rotate_val ()</h3>
 
1367
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         gimp_vector3_rotate_val             (<a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vector,
 
1368
                                                         gdouble alpha,
 
1369
                                                         gdouble beta,
 
1370
                                                         gdouble gamma);</pre>
1575
1371
<p>
1576
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-rotate"><code class="function">gimp_vector3_rotate()</code></a> but the vectors
 
1372
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector3-rotate" title="gimp_vector3_rotate ()"><code class="function">gimp_vector3_rotate()</code></a> but the vectors
1577
1373
are passed by value rather than by reference.</p>
1578
1374
<p>
1579
1375
 
1582
1378
<col align="left" valign="top">
1583
1379
<tbody>
1584
1380
<tr>
1585
 
<td><p><span class="term"><em class="parameter"><code>vector</code></em>&#160;:</span></p></td>
1586
 
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a>.
 
1381
<td><p><span class="term"><em class="parameter"><code>vector</code></em> :</span></p></td>
 
1382
<td> a <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a>.
1587
1383
</td>
1588
1384
</tr>
1589
1385
<tr>
1590
 
<td><p><span class="term"><em class="parameter"><code>alpha</code></em>&#160;:</span></p></td>
 
1386
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
1591
1387
<td> the angle (in radian) of rotation around the Z axis.
1592
1388
</td>
1593
1389
</tr>
1594
1390
<tr>
1595
 
<td><p><span class="term"><em class="parameter"><code>beta</code></em>&#160;:</span></p></td>
 
1391
<td><p><span class="term"><em class="parameter"><code>beta</code></em> :</span></p></td>
1596
1392
<td> the angle (in radian) of rotation around the Y axis.
1597
1393
</td>
1598
1394
</tr>
1599
1395
<tr>
1600
 
<td><p><span class="term"><em class="parameter"><code>gamma</code></em>&#160;:</span></p></td>
 
1396
<td><p><span class="term"><em class="parameter"><code>gamma</code></em> :</span></p></td>
1601
1397
<td> the angle (in radian) of rotation around the X axis.
1602
1398
</td>
1603
1399
</tr>
1604
1400
<tr>
1605
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
1401
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1606
1402
<td> the rotated vector.
1607
1403
</td>
1608
1404
</tr>
1611
1407
</div>
1612
1408
<hr>
1613
1409
<div class="refsect2" lang="en">
1614
 
<a name="id2629691"></a><h3>
1615
 
<a name="gimp-vector-2d-to-3d"></a>gimp_vector_2d_to_3d ()</h3>
1616
 
<a class="indexterm" name="id2629705"></a><pre class="programlisting">void                gimp_vector_2d_to_3d                (<a
1617
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1618
 
>gint</a> sx,
1619
 
                                                         <a
1620
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1621
 
>gint</a> sy,
1622
 
                                                         <a
1623
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1624
 
>gint</a> w,
1625
 
                                                         <a
1626
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1627
 
>gint</a> h,
1628
 
                                                         <a
1629
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1630
 
>gint</a> x,
1631
 
                                                         <a
1632
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1633
 
>gint</a> y,
1634
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vp,
1635
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *p);</pre>
 
1410
<a name="gimp-vector-2d-to-3d"></a><h3>gimp_vector_2d_to_3d ()</h3>
 
1411
<pre class="programlisting">void                gimp_vector_2d_to_3d                (gint sx,
 
1412
                                                         gint sy,
 
1413
                                                         gint w,
 
1414
                                                         gint h,
 
1415
                                                         gint x,
 
1416
                                                         gint y,
 
1417
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vp,
 
1418
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *p);</pre>
1636
1419
<p>
1637
1420
\"Compute screen (sx, sy) - (sx + w, sy + h) to 3D unit square
1638
1421
mapping. The plane to map to is given in the z field of p. The
1649
1432
<col align="left" valign="top">
1650
1433
<tbody>
1651
1434
<tr>
1652
 
<td><p><span class="term"><em class="parameter"><code>sx</code></em>&#160;:</span></p></td>
 
1435
<td><p><span class="term"><em class="parameter"><code>sx</code></em> :</span></p></td>
1653
1436
<td> the abscisse of the upper-left screen rectangle.
1654
1437
</td>
1655
1438
</tr>
1656
1439
<tr>
1657
 
<td><p><span class="term"><em class="parameter"><code>sy</code></em>&#160;:</span></p></td>
 
1440
<td><p><span class="term"><em class="parameter"><code>sy</code></em> :</span></p></td>
1658
1441
<td> the ordinate of the upper-left screen rectangle.
1659
1442
</td>
1660
1443
</tr>
1661
1444
<tr>
1662
 
<td><p><span class="term"><em class="parameter"><code>w</code></em>&#160;:</span></p></td>
 
1445
<td><p><span class="term"><em class="parameter"><code>w</code></em> :</span></p></td>
1663
1446
<td> the width of the screen rectangle.
1664
1447
</td>
1665
1448
</tr>
1666
1449
<tr>
1667
 
<td><p><span class="term"><em class="parameter"><code>h</code></em>&#160;:</span></p></td>
 
1450
<td><p><span class="term"><em class="parameter"><code>h</code></em> :</span></p></td>
1668
1451
<td> the height of the screen rectangle.
1669
1452
</td>
1670
1453
</tr>
1671
1454
<tr>
1672
 
<td><p><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></p></td>
 
1455
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
1673
1456
<td> the abscisse of the point in the screen rectangle to map.
1674
1457
</td>
1675
1458
</tr>
1676
1459
<tr>
1677
 
<td><p><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></p></td>
 
1460
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
1678
1461
<td> the ordinate of the point in the screen rectangle to map.
1679
1462
</td>
1680
1463
</tr>
1681
1464
<tr>
1682
 
<td><p><span class="term"><em class="parameter"><code>vp</code></em>&#160;:</span></p></td>
 
1465
<td><p><span class="term"><em class="parameter"><code>vp</code></em> :</span></p></td>
1683
1466
<td> the position of the observer.
1684
1467
</td>
1685
1468
</tr>
1686
1469
<tr>
1687
 
<td><p><span class="term"><em class="parameter"><code>p</code></em>&#160;:</span></p></td>
 
1470
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
1688
1471
<td> the resulting point.
1689
1472
</td>
1690
1473
</tr>
1693
1476
</div>
1694
1477
<hr>
1695
1478
<div class="refsect2" lang="en">
1696
 
<a name="id2629977"></a><h3>
1697
 
<a name="gimp-vector-2d-to-3d-val"></a>gimp_vector_2d_to_3d_val ()</h3>
1698
 
<a class="indexterm" name="id2629990"></a><pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a>         gimp_vector_2d_to_3d_val            (<a
1699
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1700
 
>gint</a> sx,
1701
 
                                                         <a
1702
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1703
 
>gint</a> sy,
1704
 
                                                         <a
1705
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1706
 
>gint</a> w,
1707
 
                                                         <a
1708
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1709
 
>gint</a> h,
1710
 
                                                         <a
1711
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1712
 
>gint</a> x,
1713
 
                                                         <a
1714
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1715
 
>gint</a> y,
1716
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> vp,
1717
 
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> p);</pre>
 
1479
<a name="gimp-vector-2d-to-3d-val"></a><h3>gimp_vector_2d_to_3d_val ()</h3>
 
1480
<pre class="programlisting"><a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a>         gimp_vector_2d_to_3d_val            (gint sx,
 
1481
                                                         gint sy,
 
1482
                                                         gint w,
 
1483
                                                         gint h,
 
1484
                                                         gint x,
 
1485
                                                         gint y,
 
1486
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> vp,
 
1487
                                                         <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> p);</pre>
1718
1488
<p>
1719
 
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector-2d-to-3d"><code class="function">gimp_vector_2d_to_3d()</code></a> but the
 
1489
This function is identical to <a class="link" href="libgimpmath-GimpVector.html#gimp-vector-2d-to-3d" title="gimp_vector_2d_to_3d ()"><code class="function">gimp_vector_2d_to_3d()</code></a> but the
1720
1490
position of the <em class="parameter"><code>observer</code></em> and the resulting point <em class="parameter"><code>p</code></em> are passed by
1721
1491
value rather than by reference.</p>
1722
1492
<p>
1726
1496
<col align="left" valign="top">
1727
1497
<tbody>
1728
1498
<tr>
1729
 
<td><p><span class="term"><em class="parameter"><code>sx</code></em>&#160;:</span></p></td>
 
1499
<td><p><span class="term"><em class="parameter"><code>sx</code></em> :</span></p></td>
1730
1500
<td> the abscisse of the upper-left screen rectangle.
1731
1501
</td>
1732
1502
</tr>
1733
1503
<tr>
1734
 
<td><p><span class="term"><em class="parameter"><code>sy</code></em>&#160;:</span></p></td>
 
1504
<td><p><span class="term"><em class="parameter"><code>sy</code></em> :</span></p></td>
1735
1505
<td> the ordinate of the upper-left screen rectangle.
1736
1506
</td>
1737
1507
</tr>
1738
1508
<tr>
1739
 
<td><p><span class="term"><em class="parameter"><code>w</code></em>&#160;:</span></p></td>
 
1509
<td><p><span class="term"><em class="parameter"><code>w</code></em> :</span></p></td>
1740
1510
<td> the width of the screen rectangle.
1741
1511
</td>
1742
1512
</tr>
1743
1513
<tr>
1744
 
<td><p><span class="term"><em class="parameter"><code>h</code></em>&#160;:</span></p></td>
 
1514
<td><p><span class="term"><em class="parameter"><code>h</code></em> :</span></p></td>
1745
1515
<td> the height of the screen rectangle.
1746
1516
</td>
1747
1517
</tr>
1748
1518
<tr>
1749
 
<td><p><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></p></td>
 
1519
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
1750
1520
<td> the abscisse of the point in the screen rectangle to map.
1751
1521
</td>
1752
1522
</tr>
1753
1523
<tr>
1754
 
<td><p><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></p></td>
 
1524
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
1755
1525
<td> the ordinate of the point in the screen rectangle to map.
1756
1526
</td>
1757
1527
</tr>
1758
1528
<tr>
1759
 
<td><p><span class="term"><em class="parameter"><code>vp</code></em>&#160;:</span></p></td>
 
1529
<td><p><span class="term"><em class="parameter"><code>vp</code></em> :</span></p></td>
1760
1530
<td> position of the observer.
1761
1531
</td>
1762
1532
</tr>
1763
1533
<tr>
1764
 
<td><p><span class="term"><em class="parameter"><code>p</code></em>&#160;:</span></p></td>
 
1534
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
1765
1535
<td> the resulting point.
1766
1536
</td>
1767
1537
</tr>
1768
1538
<tr>
1769
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1770
 
<td> the computed <a class="link" href="libgimpmath-GimpVector.html#GimpVector3"><span class="type">GimpVector3</span></a> point.
 
1539
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1540
<td> the computed <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3"><span class="type">GimpVector3</span></a> point.
1771
1541
</td>
1772
1542
</tr>
1773
1543
</tbody>
1775
1545
</div>
1776
1546
<hr>
1777
1547
<div class="refsect2" lang="en">
1778
 
<a name="id2630234"></a><h3>
1779
 
<a name="gimp-vector-3d-to-2d"></a>gimp_vector_3d_to_2d ()</h3>
1780
 
<a class="indexterm" name="id2630248"></a><pre class="programlisting">void                gimp_vector_3d_to_2d                (<a
1781
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1782
 
>gint</a> sx,
1783
 
                                                         <a
1784
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1785
 
>gint</a> sy,
1786
 
                                                         <a
1787
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1788
 
>gint</a> w,
1789
 
                                                         <a
1790
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1791
 
>gint</a> h,
1792
 
                                                         <a
1793
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1794
 
>gdouble</a> *x,
1795
 
                                                         <a
1796
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1797
 
>gdouble</a> *y,
1798
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *vp,
1799
 
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3">GimpVector3</a> *p);</pre>
 
1548
<a name="gimp-vector-3d-to-2d"></a><h3>gimp_vector_3d_to_2d ()</h3>
 
1549
<pre class="programlisting">void                gimp_vector_3d_to_2d                (gint sx,
 
1550
                                                         gint sy,
 
1551
                                                         gint w,
 
1552
                                                         gint h,
 
1553
                                                         gdouble *x,
 
1554
                                                         gdouble *y,
 
1555
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *vp,
 
1556
                                                         const <a class="link" href="libgimpmath-GimpVector.html#GimpVector3" title="GimpVector3">GimpVector3</a> *p);</pre>
1800
1557
<p>
1801
1558
Convert the given 3D point to 2D (project it onto the viewing
1802
1559
plane, (sx, sy, 0) - (sx + w, sy + h, 0). The input is assumed to
1804
1561
observer is passed in vp.
1805
1562
</p>
1806
1563
<p>
1807
 
This is basically the opposite of <a class="link" href="libgimpmath-GimpVector.html#gimp-vector-2d-to-3d"><code class="function">gimp_vector_2d_to_3d()</code></a>.</p>
 
1564
This is basically the opposite of <a class="link" href="libgimpmath-GimpVector.html#gimp-vector-2d-to-3d" title="gimp_vector_2d_to_3d ()"><code class="function">gimp_vector_2d_to_3d()</code></a>.</p>
1808
1565
<p>
1809
1566
 
1810
1567
</p>
1812
1569
<col align="left" valign="top">
1813
1570
<tbody>
1814
1571
<tr>
1815
 
<td><p><span class="term"><em class="parameter"><code>sx</code></em>&#160;:</span></p></td>
 
1572
<td><p><span class="term"><em class="parameter"><code>sx</code></em> :</span></p></td>
1816
1573
<td> the abscisse of the upper-left screen rectangle.
1817
1574
</td>
1818
1575
</tr>
1819
1576
<tr>
1820
 
<td><p><span class="term"><em class="parameter"><code>sy</code></em>&#160;:</span></p></td>
 
1577
<td><p><span class="term"><em class="parameter"><code>sy</code></em> :</span></p></td>
1821
1578
<td> the ordinate of the upper-left screen rectangle.
1822
1579
</td>
1823
1580
</tr>
1824
1581
<tr>
1825
 
<td><p><span class="term"><em class="parameter"><code>w</code></em>&#160;:</span></p></td>
 
1582
<td><p><span class="term"><em class="parameter"><code>w</code></em> :</span></p></td>
1826
1583
<td> the width of the screen rectangle.
1827
1584
</td>
1828
1585
</tr>
1829
1586
<tr>
1830
 
<td><p><span class="term"><em class="parameter"><code>h</code></em>&#160;:</span></p></td>
 
1587
<td><p><span class="term"><em class="parameter"><code>h</code></em> :</span></p></td>
1831
1588
<td> the height of the screen rectangle.
1832
1589
</td>
1833
1590
</tr>
1834
1591
<tr>
1835
 
<td><p><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></p></td>
 
1592
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
1836
1593
<td> the abscisse of the point in the screen rectangle to map (return value).
1837
1594
</td>
1838
1595
</tr>
1839
1596
<tr>
1840
 
<td><p><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></p></td>
 
1597
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
1841
1598
<td> the ordinate of the point in the screen rectangle to map (return value).
1842
1599
</td>
1843
1600
</tr>
1844
1601
<tr>
1845
 
<td><p><span class="term"><em class="parameter"><code>vp</code></em>&#160;:</span></p></td>
 
1602
<td><p><span class="term"><em class="parameter"><code>vp</code></em> :</span></p></td>
1846
1603
<td> position of the observer.
1847
1604
</td>
1848
1605
</tr>
1849
1606
<tr>
1850
 
<td><p><span class="term"><em class="parameter"><code>p</code></em>&#160;:</span></p></td>
 
1607
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
1851
1608
<td> the 3D point to project to the plane.
1852
1609
</td>
1853
1610
</tr>
1856
1613
</div>
1857
1614
</div>
1858
1615
<div class="refsect1" lang="en">
1859
 
<a name="id2630471"></a><h2>See Also</h2>
1860
 
<p>
1861
 
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3"><span class="type">GimpMatrix3</span></a>
1862
 
</p>
1863
 
<p>
1864
 
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix4"><span class="type">GimpMatrix4</span></a>
1865
 
</p>
1866
 
</div>
1867
 
<div class="refsect1" lang="en">
1868
 
<a name="id2630500"></a><div class="refsect2" lang="en"><a name="id2630501"></a></div>
 
1616
<a name="libgimpmath-GimpVector.see-also"></a><h2>See Also</h2>
 
1617
<p>
 
1618
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix3" title="GimpMatrix3"><span class="type">GimpMatrix3</span></a>
 
1619
</p>
 
1620
<p>
 
1621
<a class="link" href="libgimpmath-GimpMatrix.html#GimpMatrix4" title="GimpMatrix4"><span class="type">GimpMatrix4</span></a>
 
1622
</p>
 
1623
</div>
 
1624
</div>
 
1625
<div class="footer">
1869
1626
<hr>
1870
 
<div class="refsect2" lang="en"><a name="id2630502"></a></div>
1871
 
</div>
1872
 
</div>
 
1627
          Generated by GTK-Doc V1.10</div>
1873
1628
</body>
1874
1629
</html>