Options
All
  • Public
  • Public/Protected
  • All
Menu

Base class for matrices with the expectation that they will be used with WebGL. The underlying data storage is a Float32Array.

Type parameters

  • T: { elements: Float32Array }

Hierarchy

Implements

Index

Constructors

constructor

  • new AbstractMatrix(elements: Float32Array, dimensions: number): AbstractMatrix

Properties

modified

modified: boolean

Accessors

dimensions

  • get dimensions(): number
  • set dimensions(unused: number): void

elements

  • get elements(): Float32Array
  • set elements(elements: Float32Array): void

Methods

copy

  • copy(m: T): T

getElement

  • getElement(row: number, column: number): number

isLocked

  • isLocked(): boolean

isOne

  • isOne(): boolean

lock

  • lock(): number

setElement

  • setElement(row: number, column: number, value: number): void
  • Parameters

    • row: number

      The zero-based row.

    • column: number

      The zero-based column.

    • value: number

      The value of the element.

    Returns void

unlock

  • unlock(token: number): void

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Property
  • Method
  • Protected property
  • Protected method
  • Static property
  • Static method

Generated using TypeDoc