pub struct M33<T>(/* private fields */);
Expand description
A static matrix of 3x3 shape
Implementations§
Source§impl<T: Num + Copy> M33<T>
impl<T: Num + Copy> M33<T>
Sourcepub fn new_from_vecs(cols: V3<V3<T>>) -> Self
pub fn new_from_vecs(cols: V3<V3<T>>) -> Self
construct the matrix from columns-vectors
Sourcepub fn get_diagonal(&self) -> V3<T>
pub fn get_diagonal(&self) -> V3<T>
get the diagonal of the matrix
pub fn get_upper_triagular(&self) -> [T; 3]
pub fn get_lower_triangular(&self) -> [T; 3]
Trait Implementations§
Source§impl<T: Num + Copy> AddAssign for M33<T>
impl<T: Num + Copy> AddAssign for M33<T>
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moreSource§impl<T: Float + Sum> LinearAlgebra<T> for M33<T>
impl<T: Float + Sum> LinearAlgebra<T> for M33<T>
Source§impl<T: Num + Copy> SubAssign for M33<T>
impl<T: Num + Copy> SubAssign for M33<T>
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreimpl<T: Copy> Copy for M33<T>
impl<T> StructuralPartialEq for M33<T>
Auto Trait Implementations§
impl<T> Freeze for M33<T>where
T: Freeze,
impl<T> RefUnwindSafe for M33<T>where
T: RefUnwindSafe,
impl<T> Send for M33<T>where
T: Send,
impl<T> Sync for M33<T>where
T: Sync,
impl<T> Unpin for M33<T>where
T: Unpin,
impl<T> UnwindSafe for M33<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