Hierarchy

Constructors

  • Parameters

    • elements: Float32Array

      The matrix elements in column-major order. i.e. [m00, m10, m20, m01, m11, m21,,m02, m12, m22]

    • Optional uom: Unit

      The optional unit of measure.

    Returns Matrix3

Properties

modified: boolean

Accessors

  • get dimensions(): number
  • Returns number

  • get elements(): Float32Array
  • Returns Float32Array

  • set elements(elements): void
  • Parameters

    • elements: Float32Array

    Returns void

  • get uom(): Unit
  • Returns Unit

  • set uom(uom): void
  • Parameters

    Returns void

Methods

  • Parameters

    • source: MatrixLike

    Returns Matrix3

  • Returns the element at the specified (zero-based) row and column.

    Parameters

    • row: number

      The zero-based row.

    • column: number

      The zero-based column.

    Returns number

  • Returns this

  • Determines whether this multivector is locked. If the multivector is in the unlocked state then it is mutable. If the multivector is in the locked state then it is immutable.

    Returns boolean

  • Returns boolean

  • Determines whether this matrix is the identity matrix.

    Returns boolean

  • Locks this multivector (preventing any further mutation), and returns a token that may be used to unlock it.

    Returns number

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Returns this

  • Parameters

    Returns this

  • Parameters

    • i: number

      the zero-based index of the row.

    Returns number[]

  • Sets all elements of this matrix to the supplied values (provided in row-major order).

    An advantage of this method is that the function call resembles the matrix written out.

    The parameters are named according to the 1-based row and column.

    Parameters

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

    Returns this

  • Parameters

    • row: number

      The zero-based row.

    • column: number

      The zero-based column.

    • value: number

      The value of the element.

    Returns void

  • Parameters

    • Optional radix: number

    Returns string

  • Returns this

  • Unlocks this multivector (allowing mutation), using a token that was obtained from a preceding lock method call.

    Parameters

    • token: number

    Returns this

  • Creates a new matrix with all elements zero except those along the main diagonal which have the value unity.

    Returns Matrix3

  • Returns Matrix3

Generated using TypeDoc