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