[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

[property:Float32Array elements]

Float32Array with column-major matrix values.

Methods

[method:Matrix3 transpose]()

Transposes this matrix in place.

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

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

[method:Float determinant]()

Returns the matrix's determinant.

[method:Matrix3 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.

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

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

[method:Array applyToVector3Array]([page:Array array])

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

[method:Matrix3 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.

[method:Matrix3 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.

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

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

[method:Matrix3 clone]()

Create a copy of the matrix.

[method:Matrix3 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]