pub struct Mat2f { /* private fields */ }
Implementations
sourceimpl 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>
sourceimpl 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
sourceimpl AddAssign<Mat2f> for Mat2f
impl AddAssign<Mat2f> for Mat2f
sourcefn add_assign(&mut self, rhs: Mat2f)
fn add_assign(&mut self, rhs: Mat2f)
Performs the +=
operation. Read more
sourceimpl AddAssign<f32> for Mat2f
impl AddAssign<f32> for Mat2f
sourcefn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
Performs the +=
operation. Read more
sourceimpl DivAssign<f32> for Mat2f
impl DivAssign<f32> for Mat2f
sourcefn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the /=
operation. Read more
sourceimpl MulAssign<Mat2f> for Mat2f
impl MulAssign<Mat2f> for Mat2f
sourcefn mul_assign(&mut self, rhs: Mat2f)
fn mul_assign(&mut self, rhs: Mat2f)
Performs the *=
operation. Read more
sourceimpl MulAssign<f32> for Mat2f
impl MulAssign<f32> for Mat2f
sourcefn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the *=
operation. Read more
sourceimpl SubAssign<Mat2f> for Mat2f
impl SubAssign<Mat2f> for Mat2f
sourcefn sub_assign(&mut self, rhs: Mat2f)
fn sub_assign(&mut self, rhs: Mat2f)
Performs the -=
operation. Read more
sourceimpl SubAssign<f32> for Mat2f
impl SubAssign<f32> for Mat2f
sourcefn sub_assign(&mut self, rhs: f32)
fn sub_assign(&mut self, rhs: f32)
Performs the -=
operation. Read more
impl Copy for Mat2f
impl StructuralPartialEq for Mat2f
Auto Trait Implementations
impl RefUnwindSafe for Mat2f
impl Send for Mat2f
impl Sync for Mat2f
impl Unpin for Mat2f
impl UnwindSafe for Mat2f
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