Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Matrix4

Index

Constructors

Properties

_matrix: Float32Array = ...

Accessors

  • get matrix(): Float32Array

Methods

  • dotProduct(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number
  • Gets the dot product: (a * b) + (c * d) + (e * f) + (g * h)

    Parameters

    • a: number
    • b: number
    • c: number
    • d: number
    • e: number
    • f: number
    • g: number
    • h: number

    Returns number

    number

  • identity(): Float32Array
  • Identity matrix (Basic) |1 0 0 0| |0 1 0 0| |0 0 1 0| |0 0 0 1|

    Returns Float32Array

    Float32Array

  • orthographic(left: number, right: number, bottom: number, top: number, nearClip: number, farClip: number): Matrix4
  • Creates an orthographic projection matrix.

    Parameters

    • left: number
    • right: number
    • bottom: number
    • top: number
    • nearClip: number
    • farClip: number

    Returns Matrix4

    Matrix4

  • perspective(fieldOfView: number, aspect: number, near?: number, far?: number): Matrix4
  • Changes the called on matrix to a perspective matrix with the given values.

    Parameters

    • fieldOfView: number

      in radians

    • aspect: number
    • near: number = 0.1
    • far: number = 100

    Returns Matrix4

    Matrix4

  • set(m: Matrix4, m00: number, m01: number, m02: number, m03: number, m10: number, m11: number, m12: number, m13: number, m20: number, m21: number, m22: number, m23: number, m30: number, m31: number, m32: number, m33: number): Matrix4
  • Sets the matrix called on with the given values.

    Parameters

    • m: Matrix4
    • m00: number
    • m01: number
    • m02: number
    • m03: number
    • m10: number
    • m11: number
    • m12: number
    • m13: number
    • m20: number
    • m21: number
    • m22: number
    • m23: number
    • m30: number
    • m31: number
    • m32: number
    • m33: number

    Returns Matrix4

    Matrix4

Generated using TypeDoc