123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <script src="../../list.js"></script>
- <script src="../../page.js"></script>
- <link type="text/css" rel="stylesheet" href="../../page.css" />
- </head>
- <body>
- <h1>[name]</h1>
- <div class="desc">A 3x3 matrix.</div>
- <h2>Constructor</h2>
- <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>
- <div>
- n11 -- [page:Float] <br />
- n12 -- [page:Float] <br />
- n13 -- [page:Float] <br />
- n21 -- [page:Float] <br />
- n22 -- [page:Float] <br />
- n23 -- [page:Float] <br />
- n31 -- [page:Float] <br />
- n32 -- [page:Float] <br />
- n33 -- [page:Float]
- </div>
- <div>
- Initialize the 3x3 matrix with a row-major sequence of values.<br/><br/>
-
- n11, n12, n13,<br/>
- n21, n22, n23,<br/>
- n31, n32, n33<br/><br/>
-
- If no values are sent the matrix will be initialized as an identity matrix.
- </div>
- <h2>Properties</h2>
- <h3>.[page:Float32Array elements]</h3>
- <div>
- Float32Array with column-major matrix values.
- </div>
- <h2>Methods</h2>
- <h3>.transpose() [page:Matrix3]</h3>
- <div>
- Transposes this matrix in place.
- </div>
- <h3>.transposeIntoArray( [page:Array array] ) [page:Matrix3]</h3>
- <div>
- array -- [page:Array] <br />
- </div>
- <div>
- Transposes this matrix into the supplied array, and returns itself.
- </div>
- <h3>.determinant() [page:Float]</h3>
- <div>
- Returns the matrix's determinant.
- </div>
- <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>
- <div>
- n11 -- [page:Float] <br />
- n12 -- [page:Float] <br />
- n13 -- [page:Float] <br />
- n21 -- [page:Float] <br />
- n22 -- [page:Float] <br />
- n23 -- [page:Float] <br />
- n31 -- [page:Float] <br />
- n32 -- [page:Float] <br />
- n33 -- [page:Float]
- </div>
- <div>
- Set the 3x3 matrix values to the given row-major sequence of values.
- </div>
- <h3>.multiplyScalar([page:Float scalar]) [page:Matrix3 this]</h3>
- <div>
- scalar -- [page:Float]
- </div>
- <div>
- Multiply every component of the matrix by a scalar value.
- </div>
- <h3>.multiplyVector3Array([page:Array array]) [page:Array]</h3>
- <div>
- array -- An array in the form [vector1x, vector1y, vector1z, vector2x, vector2y, vector2z, ...]
- </div>
- <div>
- Multiply (apply) this matrix against every vector3 in the array.
- </div>
- <h3>.getNormalMatrix([page:Matrix4 matrix4]) [page:Matrix3 this]</h3>
- <div>
- matrix4 -- [page:Matrix4]
- </div>
- <div>
- Set this matrix as the normal matrix of the passed [page:Matrix4 matrix4]. The normal matrix is the inverse transpose of the matrix.
- </div>
- <h3>.getInverse([page:Matrix4 matrix4], [page:Boolean throwOnInvertible]) [page:Matrix3 this]</h3>
- <div>
- matrix4 -- [page:Matrix4] <br />
- throwOnInvertible -- [Page:Boolean] If true, throw an error if the matrix is invertible.
- </div>
- <div>
- Set this matrix to the inverse of the passed matrix.
- </div>
- <h3>.copy([page:Matrix3 matrix]) [page:Matrix3 this]</h3>
- <div>
- matrix -- [page:Matrix3]
- </div>
- <div>
- Copy the values of the passed matrix.
- </div>
- <h3>.clone() [page:Matrix3]</h3>
- <div>
- Create a copy of the matrix.
- </div>
- <h3>.identity() [page:Matrix3 this]</h3>
- <div>
- Set as an identity matrix.<br/><br/>
-
- 1, 0, 0<br/>
- 0, 1, 0<br/>
- 0, 0, 1<br/>
- </div>
- <h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|