pub struct Mat3f { /* private fields */ }
Implementations
sourceimpl 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>
sourceimpl 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
sourceimpl AddAssign<Mat3f> for Mat3f
impl AddAssign<Mat3f> for Mat3f
sourcefn add_assign(&mut self, rhs: Mat3f)
fn add_assign(&mut self, rhs: Mat3f)
Performs the +=
operation. Read more
sourceimpl AddAssign<f32> for Mat3f
impl AddAssign<f32> for Mat3f
sourcefn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
Performs the +=
operation. Read more
sourceimpl DivAssign<f32> for Mat3f
impl DivAssign<f32> for Mat3f
sourcefn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the /=
operation. Read more
sourceimpl MulAssign<Mat3f> for Mat3f
impl MulAssign<Mat3f> for Mat3f
sourcefn mul_assign(&mut self, rhs: Mat3f)
fn mul_assign(&mut self, rhs: Mat3f)
Performs the *=
operation. Read more
sourceimpl MulAssign<f32> for Mat3f
impl MulAssign<f32> for Mat3f
sourcefn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the *=
operation. Read more
sourceimpl SubAssign<Mat3f> for Mat3f
impl SubAssign<Mat3f> for Mat3f
sourcefn sub_assign(&mut self, rhs: Mat3f)
fn sub_assign(&mut self, rhs: Mat3f)
Performs the -=
operation. Read more
sourceimpl SubAssign<f32> for Mat3f
impl SubAssign<f32> for Mat3f
sourcefn sub_assign(&mut self, rhs: f32)
fn sub_assign(&mut self, rhs: f32)
Performs the -=
operation. Read more
impl Copy for Mat3f
impl StructuralPartialEq for Mat3f
Auto Trait Implementations
impl RefUnwindSafe for Mat3f
impl Send for Mat3f
impl Sync for Mat3f
impl Unpin for Mat3f
impl UnwindSafe for Mat3f
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more