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