summaryrefslogtreecommitdiffstats
path: root/debian/fireflies/fireflies-2.08/libgfx/doc/mat3.html
blob: d2c7a778f8e4c94417c89196e0085cb0db3a5adb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
		      "http://www.w3.org/TR/REC-html40/loose.dtd">
<!-- $Id: mat3.html 159 2000-09-05 19:43:19Z garland $ -->

<html>

<head>
<title>libgfx: Matrix Math</title>
<link rel=stylesheet href="cdoc.css" type="text/css">
<meta name="Author" content="Michael Garland">
</head>

<body>

<h2>Matrix Math</h2>

<h3>class Mat3</h3>

<p>This class implements a 3x3 real-valued matrix.
Individual elements are represented with <code>double</code> precision
floating point numbers.  To use the <tt>Mat3</tt> class you must include the
header
<pre>
    #include &lt;gfx/mat3.h&gt;
</pre>

<h4>Constructor Methods</h4>

<p>The <tt>Mat3</tt> class defines the following set of constructors:

<pre>
    <i>// Initialize all elements to 0</i>
    Mat3();

    <i>// Initialize rows with given vectors</i>
    Mat3(const Vec3&amp; r0,const Vec3&amp; r1,const Vec3&amp; r2);

    <i>// Copy values from A</i>
    Mat3(const Mat3&amp; A); 
</pre>


</body>
</html>