Constructors
constructor
- new Matrix3(): Matrix3
- new Matrix3(n11, n12, n13, n21, n22, n23, n31, n32, n33): Matrix3
Parameters
- n11: number
- n12: number
- n13: number
- n21: number
- n22: number
- n23: number
- n31: number
- n32: number
- n33: number
Properties
elements
Readonly
isMatrix3
isMatrix3
Methods
clone
- clone(): this
Returns this
copy
- copy(m): this
Returns this
determinant
- determinant(): number
Returns number
equals
- equals(matrix): boolean
Returns boolean
extractBasis
- extractBasis(xAxis, yAxis, zAxis): this
Returns this
fromArray
- fromArray(array, offset?): this
Parameters
- array: ArrayLike<number>
Optional
offset: number
Returns this
getNormalMatrix
- getNormalMatrix(matrix4): this
Returns this
identity
- identity(): this
Returns this
invert
- invert(): this
Returns this
makeRotation
- makeRotation(theta): this
Returns this
makeScale
- makeScale(x, y): this
Returns this
makeTranslation
- makeTranslation(v): this
Returns this
- makeTranslation(x, y): this
Returns this
multiply
- multiply(m): this
Returns this
multiplyMatrices
- multiplyMatrices(a, b): this
Returns this
multiplyScalar
- multiplyScalar(s): this
Returns this
premultiply
- premultiply(m): this
Returns this
rotate
- rotate(theta): this
Returns this
scale
- scale(sx, sy): this
Returns this
set
- set(n11, n12, n13, n21, n22, n23, n31, n32, n33): Matrix3
Parameters
- n11: number
- n12: number
- n13: number
- n21: number
- n22: number
- n23: number
- n31: number
- n32: number
- n33: number
setFromMatrix4
- setFromMatrix4(m): Matrix3
setUvTransform
- setUvTransform(tx, ty, sx, sy, rotation, cx, cy): this
Parameters
- tx: number
- ty: number
- sx: number
- sy: number
- rotation: number
- cx: number
- cy: number
Returns this
toArray
- toArray(): Matrix3Tuple
- toArray<TArray>(array, offset?): TArray
Type Parameters
- TArray extends ArrayLike<number>
Parameters
- array: TArray
Optional
offset: number
translate
- translate(tx, ty): this
Returns this
transpose
- transpose(): this
Returns this
transposeIntoArray
- transposeIntoArray(r): this
Returns this
Creates an identity matrix.