Struct radiant_rs::support::Mat4Stack
[−]
[src]
pub struct Mat4Stack<T = f32>(_);
A stack of 4x4 matrices.
Methods
impl<T> Mat4Stack<T> where
T: Copy,
[src]
T: Copy,
pub fn new(matrix: [[T; 4]; 4]) -> Mat4Stack<T>
[src]
Creates a new matrix stack.
pub fn push(&mut self) -> &mut [[T; 4]; 4]
[src]
Pushes a copy of the current matrix on the stack and returns a reference to it.
pub fn pop(&mut self) -> &mut [[T; 4]; 4]
[src]
Removes the top matrix from the stack and replaces the current matrix with it.
Trait Implementations
impl<T> Deref for Mat4Stack<T> where
T: Copy,
[src]
T: Copy,
type Target = [[T; 4]; 4]
The resulting type after dereferencing.
fn deref(&self) -> &[[T; 4]; 4]
[src]
Dereferences the value.
impl<T> DerefMut for Mat4Stack<T> where
T: Copy,
[src]
T: Copy,
impl<T> From<[[T; 4]; 4]> for Mat4Stack<T> where
T: Copy,
[src]
T: Copy,