Options
All
  • Public
  • Public/Protected
  • All
Menu

( class Matrix3 implements Matrix<Matrix3> )

Hierarchy

  • Matrix3

Implements

Index

Constructors

constructor

  • Creates an identity matrix.

    Returns Matrix3

Properties

elements

elements: Float32Array

Float32Array with matrix values.

Methods

clone

  • clone(): this
  • Returns this

copy

  • copy(m: this): this
  • Parameters

    • m: this

    Returns this

determinant

  • determinant(): number

flattenToArrayOffset

  • flattenToArrayOffset(array: number[], offset: number): number[]
  • deprecated

    Use {@link Matrix3#toArray .toArray()} instead.

    Parameters

    • array: number[]
    • offset: number

    Returns number[]

fromArray

  • fromArray(array: number[], offset?: number): Matrix3
  • Parameters

    • array: number[]
    • Optional offset: number

    Returns Matrix3

getInverse

  • Parameters

    • matrix: Matrix3
    • Optional throwOnDegenerate: boolean

    Returns Matrix3

  • Parameters

    • matrix: Matrix4
    • Optional throwOnDegenerate: boolean

    Returns Matrix3

getNormalMatrix

  • Parameters

    Returns Matrix3

identity

multiply

  • Multiplies this matrix by m.

    Parameters

    Returns Matrix3

multiplyMatrices

  • Sets this matrix to a x b.

    Parameters

    Returns Matrix3

multiplyScalar

  • multiplyScalar(s: number): Matrix3

multiplyVector3

  • multiplyVector3(vector: Vector3): any

multiplyVector3Array

  • multiplyVector3Array(a: any): any
  • deprecated

    This method has been removed completely.

    Parameters

    • a: any

    Returns any

premultiply

  • Parameters

    Returns Matrix3

set

  • 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

setFromMatrix4

  • Parameters

    Returns Matrix3

toArray

  • toArray(): number[]
  • Returns number[]

transpose

  • Transposes this matrix in place.

    Returns Matrix3

transposeIntoArray

  • transposeIntoArray(r: number[]): number[]
  • Transposes this matrix into the supplied array r, and returns itself.

    Parameters

    • r: number[]

    Returns number[]

Generated using TypeDoc