pub struct Mat2d { /* private fields */ }
Implementations
sourceimpl Mat2d
impl Mat2d
pub fn col(&self, index: usize) -> Vec2d
pub fn row(&self, index: usize) -> Vec2d
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) -> f64
pub fn inverse(&self) -> Self
pub fn try_inverse(&self) -> Option<Self>
sourceimpl Mat2d
impl Mat2d
pub fn from_array(m: [f64; 4]) -> Self
pub fn from_array_2d(m: [[f64; 2]; 2]) -> Self
pub fn from_diagonal(diagonal: Vec2d) -> Self
Trait Implementations
sourceimpl AddAssign<Mat2d> for Mat2d
impl AddAssign<Mat2d> for Mat2d
sourcefn add_assign(&mut self, rhs: Mat2d)
fn add_assign(&mut self, rhs: Mat2d)
Performs the +=
operation. Read more
sourceimpl AddAssign<f64> for Mat2d
impl AddAssign<f64> for Mat2d
sourcefn add_assign(&mut self, rhs: f64)
fn add_assign(&mut self, rhs: f64)
Performs the +=
operation. Read more
sourceimpl DivAssign<f64> for Mat2d
impl DivAssign<f64> for Mat2d
sourcefn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the /=
operation. Read more
sourceimpl MulAssign<Mat2d> for Mat2d
impl MulAssign<Mat2d> for Mat2d
sourcefn mul_assign(&mut self, rhs: Mat2d)
fn mul_assign(&mut self, rhs: Mat2d)
Performs the *=
operation. Read more
sourceimpl MulAssign<f64> for Mat2d
impl MulAssign<f64> for Mat2d
sourcefn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the *=
operation. Read more
sourceimpl SubAssign<Mat2d> for Mat2d
impl SubAssign<Mat2d> for Mat2d
sourcefn sub_assign(&mut self, rhs: Mat2d)
fn sub_assign(&mut self, rhs: Mat2d)
Performs the -=
operation. Read more
sourceimpl SubAssign<f64> for Mat2d
impl SubAssign<f64> for Mat2d
sourcefn sub_assign(&mut self, rhs: f64)
fn sub_assign(&mut self, rhs: f64)
Performs the -=
operation. Read more
impl Copy for Mat2d
impl StructuralPartialEq for Mat2d
Auto Trait Implementations
impl RefUnwindSafe for Mat2d
impl Send for Mat2d
impl Sync for Mat2d
impl Unpin for Mat2d
impl UnwindSafe for Mat2d
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