[name]

A 3x3 matrix.

Constructor

[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])

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:Float]
Initialize the 3x3 matrix with a row-major sequence of values.

n11, n12, n13,
n21, n22, n23,
n31, n32, n33

If no values are sent the matrix will be initialized as an identity matrix.

Properties

.[page:Float32Array elements]

Float32Array with column-major matrix values.

Methods

.transpose() [page:Matrix3]

Transposes this matrix in place.

.transposeIntoArray( [page:Array array] ) [page:Matrix3]

array -- [page:Array]
Transposes this matrix into the supplied array, and returns itself.

.determinant() [page:Float]

Returns the matrix's determinant.

.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]

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:Float]
Set the 3x3 matrix values to the given row-major sequence of values.

.multiplyScalar([page:Float scalar]) [page:Matrix3 this]

scalar -- [page:Float]
Multiply every component of the matrix by a scalar value.

.multiplyVector3Array([page:Array array]) [page:Array]

array -- An array in the form [vector1x, vector1y, vector1z, vector2x, vector2y, vector2z, ...]
Multiply (apply) this matrix against every vector3 in the array.

.getNormalMatrix([page:Matrix4 matrix4]) [page:Matrix3 this]

matrix4 -- [page:Matrix4]
Set this matrix as the normal matrix of the passed [page:Matrix4 matrix4]. The normal matrix is the inverse transpose of the matrix.

.getInverse([page:Matrix4 matrix4], [page:Boolean throwOnInvertible]) [page:Matrix3 this]

matrix4 -- [page:Matrix4]
throwOnInvertible -- [Page:Boolean] If true, throw an error if the matrix is invertible.
Set this matrix to the inverse of the passed matrix.

.copy([page:Matrix3 matrix]) [page:Matrix3 this]

matrix -- [page:Matrix3]
Copy the values of the passed matrix.

.clone() [page:Matrix3]

Create a copy of the matrix.

.identity() [page:Matrix3 this]

Set as an identity matrix.

1, 0, 0
0, 1, 0
0, 0, 1

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]