A matrix with 3 x 3 components.

Constructors

  • Constructs a new Matrix3.

    Parameters

    • m00: number = 1

      Position 0,0 of this matrix.

    • m10: number = 0

      Position 1,0 of this matrix.

    • m20: number = 0

      Position 2,0 of this matrix.

    • m01: number = 0

      Position 0,1 of this matrix.

    • m11: number = 1

      Position 1,1 of this matrix.

    • m21: number = 0

      Position 2,1 of this matrix.

    • m02: number = 0

      Position 0,2 of this matrix.

    • m12: number = 0

      Position 1,2 of this matrix.

    • m22: number = 1

      Position 2,2 of this matrix.

    Returns Matrix3

Properties

m: number[][] = ...

The components of the matrix.

Accessors

  • get m00(): number
  • Get position 0,0 of this matrix.

    Returns number

    The position 0,0 of this matrix.

  • set m00(value: number): void
  • Set position 0,0 of this matrix.

    Parameters

    • value: number

    Returns void

  • get m01(): number
  • Get position 0,1 of this matrix.

    Returns number

    The position 0,1 of this matrix.

  • set m01(value: number): void
  • Set position 0,1 of this matrix.

    Parameters

    • value: number

    Returns void

  • get m02(): number
  • Get position 0,2 of this matrix.

    Returns number

    The position 0,2 of this matrix.

  • set m02(value: number): void
  • Set position 0,2 of this matrix.

    Parameters

    • value: number

    Returns void

  • get m10(): number
  • Get position 1,0 of this matrix.

    Returns number

    The position 1,0 of this matrix.

  • set m10(value: number): void
  • Set position 1,0 of this matrix.

    Parameters

    • value: number

    Returns void

  • get m11(): number
  • Get position 1,1 of this matrix.

    Returns number

    The position 1,1 of this matrix.

  • set m11(value: number): void
  • Set position 1,1 of this matrix.

    Parameters

    • value: number

    Returns void

  • get m12(): number
  • Get position 1,2 of this matrix.

    Returns number

    The position 1,2 of this matrix.

  • set m12(value: number): void
  • Set position 1,2 of this matrix.

    Parameters

    • value: number

    Returns void

  • get m20(): number
  • Get position 2,0 of this matrix.

    Returns number

    The position 2,0 of this matrix.

  • set m20(value: number): void
  • Set position 2,0 of this matrix.

    Parameters

    • value: number

    Returns void

  • get m21(): number
  • Get position 2,1 of this matrix.

    Returns number

    The position 2,1 of this matrix.

  • set m21(value: number): void
  • Set position 2,1 of this matrix.

    Parameters

    • value: number

    Returns void

  • get m22(): number
  • Get position 2,2 of this matrix.

    Returns number

    The position 2,2 of this matrix.

  • set m22(value: number): void
  • Set position 2,2 of this matrix.

    Parameters

    • value: number

    Returns void

Methods

  • Return the components of this matrix as an array.

    Returns [number, number, number, number, number, number, number, number, number]

    The components of this matrix as an array.

  • Update the matrix by individual components.

    Parameters

    • m00: number

      Position 0,0 of this matrix.

    • m10: number

      Position 1,0 of this matrix.

    • m20: number

      Position 2,0 of this matrix.

    • m01: number

      Position 0,1 of this matrix.

    • m11: number

      Position 1,1 of this matrix.

    • m21: number

      Position 2,1 of this matrix.

    • m02: number

      Position 0,2 of this matrix.

    • m12: number

      Position 1,2 of this matrix.

    • m22: number

      Position 2,2 of this matrix.

    Returns this

    This instance.