Class Matrix3

( class Matrix3 implements Matrix<Matrix3> )

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(): Matrix3

Creates an identity matrix.

Returns

Matrix3

constructor(n11: number, n12: number, n13: number, n21: number, n22: number, n23: number, n31: number, n32: number, n33: number): Matrix3

Initialises the matrix with the supplied n11..n33 values.

Parameters

  • n11: number
  • n12: number
  • n13: number
  • n21: number
  • n22: number
  • n23: number
  • n31: number
  • n32: number
  • n33: number

Returns

Matrix3

Properties

public elements: Float32Array

Float32Array with matrix values.

Methods

public applyToVector3Array(array: Array<number>, offset?: number, length?: number): Array<number>

Parameters

  • array: Array<number>
  • offset?: number optional
  • length?: number optional

Returns

Array<number>

public clone(): Matrix3

Returns

Matrix3

public copy(m: Matrix3): Matrix3

Parameters

Returns

Matrix3

public determinant(): number

Returns

number

public flattenToArrayOffset(array: Array<number>, offset: number): Array<number>

Parameters

  • array: Array<number>
  • offset: number

Returns

Array<number>

public getInverse(matrix: Matrix3, throwOnInvertible?: boolean): Matrix3

Parameters

  • matrix: Matrix3
  • throwOnInvertible?: boolean optional

Returns

Matrix3

public getInverse(matrix: Matrix4, throwOnInvertible?: boolean): Matrix3

Parameters

  • matrix: Matrix4
  • throwOnInvertible?: boolean optional

Returns

Matrix3

public getNormalMatrix(m: Matrix4): Matrix3

Parameters

Returns

Matrix3

public identity(): Matrix3

Returns

Matrix3

public multiplyScalar(s: number): Matrix3

Parameters

  • s: number

Returns

Matrix3

public multiplyVector3Array(a: Array<number>): Array<number>

Parameters

  • a: Array<number>

Returns

Array<number>

public set(n11: number, n12: number, n13: number, n21: number, n22: number, n23: number, n31: number, n32: number, n33: number): Matrix3

Parameters

  • n11: number
  • n12: number
  • n13: number
  • n21: number
  • n22: number
  • n23: number
  • n31: number
  • n32: number
  • n33: number

Returns

Matrix3

public transpose(): Matrix3

Transposes this matrix in place.

Returns

Matrix3

public transposeIntoArray(r: Array<number>): Array<number>

Transposes this matrix into the supplied array r, and returns itself.

Parameters

  • r: Array<number>

Returns

Array<number>