#[repr(C)]pub struct Matrix3d {
pub v: [[f64; 3]; 3],
}
Expand description
Matrix math helper
Fields§
§v: [[f64; 3]; 3]
Implementations§
Source§impl Matrix3d
impl Matrix3d
pub const IDENTITY: Matrix3d
pub fn transpose(&self) -> Matrix3d
pub const fn test_equality(&self, other: Matrix3d) -> bool
pub const fn determinant(&self) -> Option<f64>
pub const fn inverse(&self) -> Self
pub fn mul_row<const R: usize>(&self, rhs: f64) -> Self
pub const fn mul_row_vector<const R: usize>(&self, rhs: Vector3d) -> Self
pub const fn mul_vector(&self, other: Vector3d) -> Vector3d
pub fn mat_mul(&self, other: Matrix3d) -> Self
pub const fn mat_mul_const(&self, other: Matrix3d) -> Self
pub const fn to_f32(&self) -> Matrix3f
Trait Implementations§
impl Copy for Matrix3d
Auto Trait Implementations§
impl Freeze for Matrix3d
impl RefUnwindSafe for Matrix3d
impl Send for Matrix3d
impl Sync for Matrix3d
impl Unpin for Matrix3d
impl UnwindSafe for Matrix3d
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