pub struct Mat2<T = usize>(pub Vec2<Vec2<T>>);Tuple Fields§
§0: Vec2<Vec2<T>>Implementations§
Source§impl<T> Mat2<T>
impl<T> Mat2<T>
pub fn new(m00: T, m10: T, m01: T, m11: T) -> Self
pub fn rows(r0: impl Into<Vec2<T>>, r1: impl Into<Vec2<T>>) -> Self
pub fn det(&self) -> <T::Output as Sub>::Output
pub fn r0(&self) -> Vec2<T>where
T: Copy,
pub fn r1(&self) -> Vec2<T>where
T: Copy,
pub fn c0(&self) -> Vec2<T>where
T: Copy,
pub fn c1(&self) -> Vec2<T>where
T: Copy,
Trait Implementations§
Source§impl<T: AddAssign<O>, O> AddAssign<Mat2<O>> for Mat2<T>
impl<T: AddAssign<O>, O> AddAssign<Mat2<O>> for Mat2<T>
Source§fn add_assign(&mut self, other: Mat2<O>)
fn add_assign(&mut self, other: Mat2<O>)
Performs the
+= operation. Read moreSource§impl<T: DivAssign<O>, O: Copy> DivAssign<O> for Mat2<T>
impl<T: DivAssign<O>, O: Copy> DivAssign<O> for Mat2<T>
Source§fn div_assign(&mut self, other: O)
fn div_assign(&mut self, other: O)
Performs the
/= operation. Read moreSource§impl<T: RemAssign<O>, O: Copy> RemAssign<O> for Mat2<T>
impl<T: RemAssign<O>, O: Copy> RemAssign<O> for Mat2<T>
Source§fn rem_assign(&mut self, other: O)
fn rem_assign(&mut self, other: O)
Performs the
%= operation. Read moreimpl<T: Copy> Copy for Mat2<T>
impl<T: Eq> Eq for Mat2<T>
impl<T> StructuralPartialEq for Mat2<T>
Auto Trait Implementations§
impl<T> Freeze for Mat2<T>where
T: Freeze,
impl<T> RefUnwindSafe for Mat2<T>where
T: RefUnwindSafe,
impl<T> Send for Mat2<T>where
T: Send,
impl<T> Sync for Mat2<T>where
T: Sync,
impl<T> Unpin for Mat2<T>where
T: Unpin,
impl<T> UnsafeUnpin for Mat2<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Mat2<T>where
T: 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