Add to git.
[c2lib.git] / doc / vec_normalize2d.3.html
1 <html>
2 <head>
3 <meta name="generator" content="groff -Thtml, see www.gnu.org">
4 <meta name="Content-Style" content="text/css">
5 <title>vec_normalize</title>
6 </head>
7 <body>
8
9 <h1 align=center>vec_normalize</h1>
10 <a href="#NAME">NAME</a><br>
11 <a href="#SYNOPSIS">SYNOPSIS</a><br>
12 <a href="#DESCRIPTION">DESCRIPTION</a><br>
13 <a href="#AUTHOR">AUTHOR</a><br>
14 <a href="#LICENSE">LICENSE</a><br>
15 <a href="#VERSION">VERSION</a><br>
16 <a href="#SEE ALSO">SEE ALSO</a><br>
17
18 <hr>
19 <!-- Creator     : groff version 1.17.2 -->
20 <!-- CreationDate: Fri May  3 14:58:50 2002 -->
21 <a name="NAME"></a>
22 <h2>NAME</h2>
23 <table width="100%" border=0 rules="none" frame="void"
24        cols="2" cellspacing="0" cellpadding="0">
25 <tr valign="top" align="left">
26 <td width="10%"></td><td width="90%">
27 vec_normalize, vec_normalize2d - normalize a vector</td></table>
28 <a name="SYNOPSIS"></a>
29 <h2>SYNOPSIS</h2>
30
31 <table width="100%" border=0 rules="none" frame="void"
32        cols="2" cellspacing="0" cellpadding="0">
33 <tr valign="top" align="left">
34 <td width="10%"></td><td width="90%">
35 <pre><b>#include &lt;matvec.h&gt;
36
37 void vec_normalize (const float *v, float *r);
38 void vec_normalize2d (const float *v, float *r);
39 </b></pre></td></table>
40 <a name="DESCRIPTION"></a>
41 <h2>DESCRIPTION</h2>
42
43 <table width="100%" border=0 rules="none" frame="void"
44        cols="2" cellspacing="0" cellpadding="0">
45 <tr valign="top" align="left">
46 <td width="10%"></td><td width="90%">
47 These two functions normalize respectively a 3D or 2D vector
48 <b>v</b>. The original vector <b>v</b> is not touched, and
49 the result is placed in vector <b>r</b>.</td></table>
50
51 <table width="100%" border=0 rules="none" frame="void"
52        cols="2" cellspacing="0" cellpadding="0">
53 <tr valign="top" align="left">
54 <td width="10%"></td><td width="90%">
55 To normalize a vector in-place (ie. modifying the original
56 vector), do:</td></table>
57
58 <table width="100%" border=0 rules="none" frame="void"
59        cols="2" cellspacing="0" cellpadding="0">
60 <tr valign="top" align="left">
61 <td width="10%"></td><td width="90%">
62 <b>vec_normalize (v, v);</b></td></table>
63 <a name="AUTHOR"></a>
64 <h2>AUTHOR</h2>
65
66 <table width="100%" border=0 rules="none" frame="void"
67        cols="2" cellspacing="0" cellpadding="0">
68 <tr valign="top" align="left">
69 <td width="10%"></td><td width="90%">
70 Richard Jones &lt;rich@annexia.org&gt;</td></table>
71 <a name="LICENSE"></a>
72 <h2>LICENSE</h2>
73
74 <table width="100%" border=0 rules="none" frame="void"
75        cols="2" cellspacing="0" cellpadding="0">
76 <tr valign="top" align="left">
77 <td width="10%"></td><td width="90%">
78 GNU LGPL (see http://www.gnu.org/)</td></table>
79 <a name="VERSION"></a>
80 <h2>VERSION</h2>
81
82 <table width="100%" border=0 rules="none" frame="void"
83        cols="2" cellspacing="0" cellpadding="0">
84 <tr valign="top" align="left">
85 <td width="10%"></td><td width="90%">
86 c2lib-1.2.13</td></table>
87 <a name="SEE ALSO"></a>
88 <h2>SEE ALSO</h2>
89
90 <table width="100%" border=0 rules="none" frame="void"
91        cols="2" cellspacing="0" cellpadding="0">
92 <tr valign="top" align="left">
93 <td width="10%"></td><td width="90%">
94 <b>vec_magnitude(3)</b>,
95 <b>vec_magnitude2d(3)</b>.</td></table>
96 <hr>
97 </body>
98 </html>