MatrixStack

A matrix stack similiar to OpenGLs glPushMatrix/glPopMatrix

Constructors

this
deprecated this()
Undocumented in source.
this
deprecated this(size_t depth)

Sets the stacks initial size to depth elements

Alias This

top

Members

Aliases

Matrix
alias Matrix = T
Undocumented in source.

Functions

pop
Matrix pop()

Pops a matrix from the stack and sets it as top matrix. Also returns a reference to the new top matrix.

push
void push()

Pushes the top matrix on the stack and keeps a copy as the new top matrix

push
void push(Matrix matrix)

Pushes the top matrix on the stack and sets matrix as the new top matrix.

set
void set(Matrix matrix)

Sets the top matrix

Variables

realloc_interval
size_t realloc_interval;

If the stack is too small to hold more items, space for realloc_interval more elements will be allocated

top
Matrix top;

The top matrix, the one you work with

Meta