Options
All
  • Public
  • Public/Protected
  • All
Menu

Implementation of a Matrixstack. Helps in the traversal of a Scenegraph.

Hierarchy

  • MatrixStack

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    Returns MatrixStack

Properties

Private matrices

matrices: Matrix4[]

Internal array that holds the matrices.

Methods

empty

  • empty(): boolean
  • Returns if there are matrices on the stack. A single IdentityMatrix is always on the stack to ensure proper multiplication at pushing.

    Returns boolean

last

  • Returns the topmost element without removing it.

    Returns Matrix4

pop

  • Removes the topmost element and returns it. If there is no Matrix on the stack a Identitymatrix is returned.

    Returns Matrix4

push

  • Adds a new Matrix to the Stack by adding this.last() * matrix;

    Parameters

    Returns void

Generated using TypeDoc