3 <meta name="generator" content="groff -Thtml, see www.gnu.org">
4 <meta name="Content-Style" content="text/css">
5 <title>identity_matrix</title>
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>
19 <!-- Creator : groff version 1.17.2 -->
20 <!-- CreationDate: Fri May 3 14:57:03 2002 -->
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>
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 <matvec.h>
37 float identity_matrix[16];
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>
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>
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>
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>
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 <rich@annexia.org></td></table>
79 <a name="LICENSE"></a>
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>
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>
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>