Constructors
constructor
- new Matrix4(): Matrix4
Properties
elements
elements: number[]
Readonly
isMatrix4
isMatrix4: boolean
Methods
clone
- clone(): Matrix4
compose
- compose(position, quaternion, scale): Matrix4
copy
- copy(m): Matrix4
copyPosition
- copyPosition(m): Matrix4
decompose
- decompose(position, quaternion, scale): Matrix4
determinant
- determinant(): number
Returns number
equals
- equals(matrix): boolean
Returns boolean
extractBasis
- extractBasis(xAxis, yAxis, zAxis): Matrix4
extractRotation
- extractRotation(m): Matrix4
fromArray
- fromArray(array, offset?): Matrix4
Parameters
array: ArrayLike<number> | number[]
Optional
offset: number
getMaxScaleOnAxis
- getMaxScaleOnAxis(): number
Returns number
identity
- identity(): Matrix4
invert
- invert(): Matrix4
inverted
- inverted(): Matrix4
lookAt
- lookAt(eye, target, up): Matrix4
makeBasis
- makeBasis(xAxis, yAxis, zAxis): Matrix4
makeOrthographic
- makeOrthographic(left, right, top, bottom, near, far): Matrix4
Parameters
left: number
right: number
top: number
bottom: number
near: number
far: number
makePerspective
- makePerspective(left, right, top, bottom, near, far): Matrix4
Parameters
left: number
right: number
top: number
bottom: number
near: number
far: number
makeRotationAxis
- makeRotationAxis(axis, angle): Matrix4
makeRotationFromEuler
- makeRotationFromEuler(euler): Matrix4
makeRotationFromQuaternion
- makeRotationFromQuaternion(q): Matrix4
makeRotationX
- makeRotationX(theta): Matrix4
makeRotationY
- makeRotationY(theta): Matrix4
makeRotationZ
- makeRotationZ(theta): Matrix4
makeScale
- makeScale(x, y, z): Matrix4
Parameters
x: number
y: number
z: number
makeShear
- makeShear(x, y, z): Matrix4
Parameters
x: number
y: number
z: number
makeTranslation
- makeTranslation(x, y, z): Matrix4
Parameters
x: number
y: number
z: number
multiplied
- multiplied(m): Matrix4
multiply
- multiply(m): Matrix4
multiplyMatrices
- multiplyMatrices(a, b): Matrix4
multiplyScalar
- multiplyScalar(s): Matrix4
premultiplied
- premultiplied(m): Matrix4
premultiply
- premultiply(m): Matrix4
scale
- scale(v): Matrix4
set
- set(n11, n12, n13, n14, n21, n22, n23, n24, n31, n32, n33, n34, n41, n42, n43, n44): Matrix4
Parameters
n11: number
n12: number
n13: number
n14: number
n21: number
n22: number
n23: number
n24: number
n31: number
n32: number
n33: number
n34: number
n41: number
n42: number
n43: number
n44: number
setFromMatrix3
- setFromMatrix3(m): Matrix4
setPosition
- setPosition(x?, y?, z?): Matrix4
Parameters
Optional
x: number
Optional
y: number
Optional
z: number
toArray
- toArray(array?, offset?): number[]
Parameters
Optional
array: number[]
Optional
offset: number
Returns number[]
transpose
- transpose(): Matrix4