Matrix4

@native @JSImport("three", "Matrix4") @JSType class Matrix4 extends Matrix
trait Matrix
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def compose(translation: Vector3, rotation: Quaternion, scale: Vector3): Matrix4
def crossVector(v: Any): Unit
def decompose(translation: Vector3, rotation: Quaternion, scale: Vector3): Matrix4
def equals(matrix: Matrix4): Boolean
def extractBasis(xAxis: Vector3, yAxis: Vector3, zAxis: Vector3): Matrix4
def flattenToArrayOffset(array: Array[Double], offset: Double): Array[Double]
def fromArray(array: Array[Double] | Uint8Array | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array | Array[Double], offset: UndefOr[Double]): Matrix4
def getInverse(matrix: Matrix): Matrix
def getMaxScaleOnAxis(): Double
def lookAt(eye: Vector3, target: Vector3, up: Vector3): Matrix4
def makeBasis(xAxis: Vector3, yAxis: Vector3, zAxis: Vector3): Matrix4
def makeOrthographic(left: Double, right: Double, top: Double, bottom: Double, near: Double, far: Double): Matrix4
def makePerspective(left: Double, right: Double, bottom: Double, top: Double, near: Double, far: Double): Matrix4
def makePerspective(fov: Double, aspect: Double, near: Double, far: Double): Matrix4
def makeRotationAxis(axis: Vector3, angle: Double): Matrix4
def makeRotationX(theta: Double): Matrix4
def makeRotationY(theta: Double): Matrix4
def makeRotationZ(theta: Double): Matrix4
def makeScale(x: Double, y: Double, z: Double): Matrix4
def makeShear(xy: Double, xz: Double, yx: Double, yz: Double, zx: Double, zy: Double): Matrix4
def makeTranslation(x: Double, y: Double, z: Double): Matrix4
def multiplyToArray(a: Matrix4, b: Matrix4, r: Array[Double]): Matrix4
def multiplyVector3(v: Any): Any
def multiplyVector3Array(array: Array[Double]): Array[Double]
def multiplyVector4(v: Any): Any
def rotateAxis(v: Any): Unit
def set(n11: Double, n12: Double, n13: Double, n14: Double, n21: Double, n22: Double, n23: Double, n24: Double, n31: Double, n32: Double, n33: Double, n34: Double, n41: Double, n42: Double, n43: Double, n44: Double): Matrix4
def setPosition(v: Vector3 | Double, y: UndefOr[Double], z: UndefOr[Double]): Matrix4
def toArray(array: UndefOr[Array[Double]], offset: UndefOr[Double]): Array[Double]

Inherited methods

def copy(m: Matrix4): Matrix4
Inherited from
Matrix
def determinant(): Double
Inherited from
Matrix
def hasOwnProperty(v: String): Boolean
Inherited from
Object
Inherited from
Matrix
def invert(): Matrix
Inherited from
Matrix
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
@JSName("clone")
def jsClone(): Matrix
Inherited from
Matrix
def multiplyScalar(s: Double): Matrix
Inherited from
Matrix
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
Inherited from
Matrix
def valueOf(): Any
Inherited from
Object

Inherited fields

var elements: Array[Double]
Inherited from
Matrix