Struct onyx::math::Mat4
[−]
[src]
pub struct Mat4<R: Real = f32> { /* fields omitted */ }
Methods
impl<R: Real> Mat4<R>
[src]
fn zero() -> Self
fn identity() -> Self
fn ortho(left: R, right: R, top: R, bottom: R, near: R, far: R) -> Self
fn model(position: Vec3<R>, scale: Vec3<R>) -> Self
fn translation(position: Vec3<R>) -> Self
fn scale(scale: Vec3<R>) -> Mat4<R>
fn elements(&self) -> Elements<R>
Trait Implementations
impl<R: Copy + Real> Copy for Mat4<R>
[src]
impl<R: Clone + Real> Clone for Mat4<R>
[src]
fn clone(&self) -> Mat4<R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<R: Debug + Real> Debug for Mat4<R>
[src]
impl<R: Real> Index<(usize, usize)> for Mat4<R>
[src]
type Output = R
The returned type after indexing
fn index(&self, index: (usize, usize)) -> &Self::Output
The method for the indexing (container[index]
) operation
impl<R: Real> IndexMut<(usize, usize)> for Mat4<R>
[src]
fn index_mut(&mut self, index: (usize, usize)) -> &mut Self::Output
The method for the mutable indexing (container[index]
) operation
impl<R: Real> Add<Self> for Mat4<R>
[src]
type Output = Self
The resulting type after applying the +
operator
fn add(self, other: Self) -> Self
The method for the +
operator
impl<R: Real> AddAssign<Self> for Mat4<R>
[src]
fn add_assign(&mut self, other: Self)
The method for the +=
operator
impl<R: Real> Sub<Self> for Mat4<R>
[src]
type Output = Self
The resulting type after applying the -
operator
fn sub(self, other: Self) -> Self
The method for the -
operator
impl<R: Real> SubAssign<Self> for Mat4<R>
[src]
fn sub_assign(&mut self, other: Self)
The method for the -=
operator
impl<R: Real> Mul<Self> for Mat4<R>
[src]
type Output = Self
The resulting type after applying the *
operator
fn mul(self, right: Self) -> Self
The method for the *
operator