Internal array that holds the matrices.
Returns if there are matrices on the stack. A single IdentityMatrix is always on the stack to ensure proper multiplication at pushing.
Returns the topmost element without removing it.
Removes the topmost element and returns it. If there is no Matrix on the stack a Identitymatrix is returned.
Adds a new Matrix to the Stack by adding this.last() * matrix;
Generated using TypeDoc
Implementation of a Matrixstack. Helps in the traversal of a Scenegraph.