#[repr(transparent)]pub struct Mat<const N: usize, const M: usize, S: Field>(pub [[S; M]; N]);Tuple Fields§
§0: [[S; M]; N]Implementations§
Source§impl<S: Field> Mat<4, 4, S>
impl<S: Field> Mat<4, 4, S>
pub fn affine(linear: Mat<3, 3, S>, translation: Vect<3, S>) -> Self
pub fn linear(linear: Mat<3, 3, S>) -> Self
pub fn translation(translation: Vect<3, S>) -> Self
pub fn perspective_projection(aspect: S, fov: S, n: S, f: S) -> Self
pub fn uniform_scale(scale: S) -> Self
Trait Implementations§
Source§impl<S: Field, const N: usize, const M: usize, const P: usize> Mul<Mat<M, P, S>> for Mat<N, M, S>
impl<S: Field, const N: usize, const M: usize, const P: usize> Mul<Mat<M, P, S>> for Mat<N, M, S>
impl<const N: usize, const M: usize, S: Copy + Field> Copy for Mat<N, M, S>
impl<const N: usize, const M: usize, S: Eq + Field> Eq for Mat<N, M, S>
impl<const N: usize, const M: usize, S: Field> StructuralPartialEq for Mat<N, M, S>
Auto Trait Implementations§
impl<const N: usize, const M: usize, S> Freeze for Mat<N, M, S>where
S: Freeze,
impl<const N: usize, const M: usize, S> RefUnwindSafe for Mat<N, M, S>where
S: RefUnwindSafe,
impl<const N: usize, const M: usize, S> Send for Mat<N, M, S>where
S: Send,
impl<const N: usize, const M: usize, S> Sync for Mat<N, M, S>where
S: Sync,
impl<const N: usize, const M: usize, S> Unpin for Mat<N, M, S>where
S: Unpin,
impl<const N: usize, const M: usize, S> UnwindSafe for Mat<N, M, S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more