source: other-projects/playing-in-the-street/summer-2013/trunk/Playing-in-the-Street-WPF/Content/Web/mrdoob-three.js-4862f5f/docs/api/math/Matrix3.html@ 28897

Last change on this file since 28897 was 28897, checked in by davidb, 10 years ago

GUI front-end to server base plus web page content

File size: 3.6 KB
Line 
1<!DOCTYPE html>
2<html lang="en">
3 <head>
4 <meta charset="utf-8" />
5 <script src="../../list.js"></script>
6 <script src="../../page.js"></script>
7 <link type="text/css" rel="stylesheet" href="../../page.css" />
8 </head>
9 <body>
10 <h1>[name]</h1>
11
12 <div class="desc">A 3x3 matrix.</div>
13
14
15 <h2>Constructor</h2>
16
17
18 <h3>[name]([page:Float n11], [page:Float n12], [page:Float n13], [page:Float n21], [page:Float n22], [page:Float n23], [page:Float n31], [page:Float n32], [page:Float n33])</h3>
19 <div>
20 n11 -- [page:Float] <br />
21 n12 -- [page:Float] <br />
22 n13 -- [page:Float] <br />
23 n21 -- [page:Float] <br />
24 n22 -- [page:Float] <br />
25 n23 -- [page:Float] <br />
26 n31 -- [page:Float] <br />
27 n32 -- [page:Float] <br />
28 n33 -- [page:Float]
29 </div>
30 <div>
31 Initialize the 3x3 matrix with a row-major sequence of values.<br/><br/>
32
33 n11, n12, n13,<br/>
34 n21, n22, n23,<br/>
35 n31, n32, n33<br/><br/>
36
37 If no values are sent the matrix will be initialized as an identity matrix.
38 </div>
39
40
41
42 <h2>Properties</h2>
43
44 <h3>.[page:Float32Array elements]</h3>
45 <div>
46 Float32Array with column-major matrix values.
47 </div>
48
49
50 <h2>Methods</h2>
51
52 <h3>.transpose() [page:Matrix3]</h3>
53 <div>
54 Transposes this matrix in place.
55 </div>
56
57 <h3>.transposeIntoArray( [page:Array array] ) [page:Matrix3]</h3>
58 <div>
59 array -- [page:Array] <br />
60 </div>
61 <div>
62 Transposes this matrix into the supplied array, and returns itself.
63 </div>
64
65
66 <h3>.determinant() [page:Float]</h3>
67 <div>
68 Returns the matrix's determinant.
69 </div>
70
71 <h3>.set([page:Float n11], [page:Float n12], [page:Float n13], [page:Float n21], [page:Float n22], [page:Float n23], [page:Float n31], [page:Float n32], [page:Float n33]) [page:Matrix3 this]</h3>
72 <div>
73 n11 -- [page:Float] <br />
74 n12 -- [page:Float] <br />
75 n13 -- [page:Float] <br />
76 n21 -- [page:Float] <br />
77 n22 -- [page:Float] <br />
78 n23 -- [page:Float] <br />
79 n31 -- [page:Float] <br />
80 n32 -- [page:Float] <br />
81 n33 -- [page:Float]
82 </div>
83 <div>
84 Set the 3x3 matrix values to the given row-major sequence of values.
85 </div>
86
87 <h3>.multiplyScalar([page:Float scalar]) [page:Matrix3 this]</h3>
88 <div>
89 scalar -- [page:Float]
90 </div>
91 <div>
92 Multiply every component of the matrix by a scalar value.
93 </div>
94
95 <h3>.multiplyVector3Array([page:Array array]) [page:Array]</h3>
96 <div>
97 array -- An array in the form [vector1x, vector1y, vector1z, vector2x, vector2y, vector2z, ...]
98 </div>
99 <div>
100 Multiply (apply) this matrix against every vector3 in the array.
101 </div>
102
103 <h3>.getNormalMatrix([page:Matrix4 matrix4]) [page:Matrix3 this]</h3>
104 <div>
105 matrix4 -- [page:Matrix4]
106 </div>
107 <div>
108 Set this matrix as the normal matrix of the passed [page:Matrix4 matrix4]. The normal matrix is the inverse transpose of the matrix.
109 </div>
110
111 <h3>.getInverse([page:Matrix4 matrix4], [page:Boolean throwOnInvertible]) [page:Matrix3 this]</h3>
112 <div>
113 matrix4 -- [page:Matrix4] <br />
114 throwOnInvertible -- [Page:Boolean] If true, throw an error if the matrix is invertible.
115 </div>
116 <div>
117 Set this matrix to the inverse of the passed matrix.
118 </div>
119
120 <h3>.copy([page:Matrix3 matrix]) [page:Matrix3 this]</h3>
121 <div>
122 matrix -- [page:Matrix3]
123 </div>
124 <div>
125 Copy the values of the passed matrix.
126 </div>
127
128 <h3>.clone() [page:Matrix3]</h3>
129 <div>
130 Create a copy of the matrix.
131 </div>
132
133 <h3>.identity() [page:Matrix3 this]</h3>
134 <div>
135 Set as an identity matrix.<br/><br/>
136
137 1, 0, 0<br/>
138 0, 1, 0<br/>
139 0, 0, 1<br/>
140 </div>
141
142 <h2>Source</h2>
143
144 [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
145 </body>
146</html>
Note: See TracBrowser for help on using the repository browser.