pub struct Mat2f { /* private fields */ }
Implementations§
Source§impl Mat2f
impl Mat2f
pub fn col(&self, index: usize) -> Vec2f
pub fn row(&self, index: usize) -> Vec2f
pub fn is_nan(&self) -> bool
pub fn is_infinite(&self) -> bool
pub fn is_finite(&self) -> bool
pub fn transpose(&self) -> Self
pub fn determinant(&self) -> f32
pub fn inverse(&self) -> Self
pub fn try_inverse(&self) -> Option<Self>
Source§impl Mat2f
impl Mat2f
pub fn from_array(m: [f32; 4]) -> Self
pub fn from_array_2d(m: [[f32; 2]; 2]) -> Self
pub fn from_diagonal(diagonal: Vec2f) -> Self
Trait Implementations§
Source§impl AddAssign<f32> for Mat2f
impl AddAssign<f32> for Mat2f
Source§fn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
Performs the
+=
operation. Read moreSource§impl AddAssign for Mat2f
impl AddAssign for Mat2f
Source§fn add_assign(&mut self, rhs: Mat2f)
fn add_assign(&mut self, rhs: Mat2f)
Performs the
+=
operation. Read moreSource§impl DivAssign<f32> for Mat2f
impl DivAssign<f32> for Mat2f
Source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/=
operation. Read moreSource§impl MulAssign<f32> for Mat2f
impl MulAssign<f32> for Mat2f
Source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*=
operation. Read moreSource§impl MulAssign for Mat2f
impl MulAssign for Mat2f
Source§fn mul_assign(&mut self, rhs: Mat2f)
fn mul_assign(&mut self, rhs: Mat2f)
Performs the
*=
operation. Read moreSource§impl SubAssign<f32> for Mat2f
impl SubAssign<f32> for Mat2f
Source§fn sub_assign(&mut self, rhs: f32)
fn sub_assign(&mut self, rhs: f32)
Performs the
-=
operation. Read moreSource§impl SubAssign for Mat2f
impl SubAssign for Mat2f
Source§fn sub_assign(&mut self, rhs: Mat2f)
fn sub_assign(&mut self, rhs: Mat2f)
Performs the
-=
operation. Read moreimpl Copy for Mat2f
impl StructuralPartialEq for Mat2f
Auto Trait Implementations§
impl Freeze for Mat2f
impl RefUnwindSafe for Mat2f
impl Send for Mat2f
impl Sync for Mat2f
impl Unpin for Mat2f
impl UnwindSafe for Mat2f
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