pub struct M44<T>(/* private fields */);
Expand description
A static Matrix of 4x4 shape
Implementations§
Source§impl<T: Num + Copy> M44<T>
impl<T: Num + Copy> M44<T>
pub fn new_from_vecs(cols: V4<V4<T>>) -> Self
Sourcepub fn get_diagonal(&self) -> V4<T>
pub fn get_diagonal(&self) -> V4<T>
get the diagonal of the matrix
pub fn get_submatrix(&self, selected: (usize, usize)) -> M33<T>
pub fn get_rows(self) -> V4<V4<T>>
pub fn get_cols(self) -> V4<V4<T>>
pub fn get_upper_triagular(&self) -> [T; 6]
pub fn get_lower_triangular(&self) -> [T; 6]
Trait Implementations§
Source§impl<T: Num + Copy> AddAssign for M44<T>
impl<T: Num + Copy> AddAssign for M44<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 M44<T>
impl<T: Float + Sum> LinearAlgebra<T> for M44<T>
Source§impl<T: Num + Copy> SubAssign for M44<T>
impl<T: Num + Copy> SubAssign for M44<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 M44<T>
impl<T> StructuralPartialEq for M44<T>
Auto Trait Implementations§
impl<T> Freeze for M44<T>where
T: Freeze,
impl<T> RefUnwindSafe for M44<T>where
T: RefUnwindSafe,
impl<T> Send for M44<T>where
T: Send,
impl<T> Sync for M44<T>where
T: Sync,
impl<T> Unpin for M44<T>where
T: Unpin,
impl<T> UnwindSafe for M44<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