Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Matrix4

Matrix 4x4

export

Hierarchy

Index

Constructors

constructor

  • new Matrix4(numArray?: number[]): Matrix4
  • Creates an instance of Matrix4.

    memberof

    Matrix4

    Parameters

    • Optional numArray: number[]

    Returns Matrix4

Properties

matrix

matrix: number[] = ...

Matrix elements

memberof

Matrix4

Methods

add

clone

empty

equals

eye

fill

getArray

  • getArray(): Float32Array
  • Get Float32Array (to pass shader)

    memberof

    Matrix4

    Returns Float32Array

    {Float32Array}

getScaleRotationMatrix

getTranslateVector

inverse

multiply

set

setUniform

  • setUniform(gl: WebGLRenderingContext, uniLocation: WebGLUniformLocation): void
  • Pass value to shader

    memberof

    Matrix4

    Parameters

    • gl: WebGLRenderingContext
    • uniLocation: WebGLUniformLocation

    Returns void

subtract

transpose

Generated using TypeDoc