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