blob: a41a0cb7e5353f624c90a598c812b6b2db7af4b6 (
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
45
46
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<!-- $Id: mat2.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 Mat2</h3>
<p>This class implements a 2x2 real-valued matrix.
Individual elements are represented with <code>double</code> precision
floating point numbers. To use the <tt>Mat2</tt> class you must include the
header
<pre>
#include <gfx/mat2.h>
</pre>
<h4>Constructor Methods</h4>
<p>The <tt>Mat2</tt> class defines the following set of constructors:
<pre>
<i>// Initialize all elements to 0</i>
Mat2();
<i>// Initialize row 0 to [a b] and row 1 to [c d]</i>
Mat2(double a, double b, double c, double d);
<i>// Initialize rows with given vectors</i>
Mat2(const Vec2 &r0,const Vec2 &r1);
<i>// Copy values from A</i>
Mat2(const Mat2 &A);
</pre>
</body>
</html>
|