Add to git.
[c2lib.git] / doc / zero_vec.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>identity_matrix</title>
6 </head>
7 <body>
8
9 <h1 align=center>identity_matrix</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:59:23 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 identity_matrix, zero_vec, new_identity_matrix, new_zero_vec, make_identity_matrix, make_zero_vec - identity matrix and zero 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 float identity_matrix[16];
38 float zero_vec[4];
39 float *new_identity_matrix (pool);
40 float *new_zero_vec (pool);
41 #define make_identity_matrix(m) memcpy (m, identity_matrix, sizeof(float)*16);
42 #define make_zero_vec(v) memcpy (v, zero_vec, sizeof (float) * 4);
43 </b></pre></td></table>
44 <a name="DESCRIPTION"></a>
45 <h2>DESCRIPTION</h2>
46
47 <table width="100%" border=0 rules="none" frame="void"
48        cols="2" cellspacing="0" cellpadding="0">
49 <tr valign="top" align="left">
50 <td width="10%"></td><td width="90%">
51 The <b>identity_matrix</b> variable contains a read-only
52 copy of the identity matrix. The <b>zero_vec</b> variable
53 contains a read-only copy of the zero vector.</td></table>
54
55 <table width="100%" border=0 rules="none" frame="void"
56        cols="2" cellspacing="0" cellpadding="0">
57 <tr valign="top" align="left">
58 <td width="10%"></td><td width="90%">
59 Use <b>new_identity_matrix</b> to allocate a new identity
60 matrix variable in <b>pool</b>. Use <b>new_zero_vec</b> to
61 similarly allocate a new zero vector.</td></table>
62
63 <table width="100%" border=0 rules="none" frame="void"
64        cols="2" cellspacing="0" cellpadding="0">
65 <tr valign="top" align="left">
66 <td width="10%"></td><td width="90%">
67 Use <b>make_identity_matrix</b> to copy the identity matrix
68 over an existing matrix <b>m</b>. Use <b>make_zero_vec</b>
69 to similarly copy the zero vector over an existing vector
70 <b>v</b>.</td></table>
71 <a name="AUTHOR"></a>
72 <h2>AUTHOR</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 Richard Jones &lt;rich@annexia.org&gt;</td></table>
79 <a name="LICENSE"></a>
80 <h2>LICENSE</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 GNU LGPL (see http://www.gnu.org/)</td></table>
87 <a name="VERSION"></a>
88 <h2>VERSION</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 c2lib-1.2.13</td></table>
95 <a name="SEE ALSO"></a>
96 <h2>SEE ALSO</h2>
97
98 <table width="100%" border=0 rules="none" frame="void"
99        cols="2" cellspacing="0" cellpadding="0">
100 <tr valign="top" align="left">
101 <td width="10%"></td><td width="90%">
102 <b>new_matrix(3)</b>, <b>new_vec(3)</b>.</td></table>
103 <hr>
104 </body>
105 </html>