pub struct Mat3 {
pub x: Vec3,
pub y: Vec3,
pub z: Vec3,
}Expand description
la::mat<double, 3, 3> — 3×3 matrix
Fields§
§x: Vec3§y: Vec3§z: Vec3Implementations§
Source§impl Mat3
impl Mat3
pub const fn from_cols(x: Vec3, y: Vec3, z: Vec3) -> Self
pub fn identity() -> Self
pub fn row(&self, i: usize) -> Vec3
pub fn transpose(&self) -> Self
pub fn determinant(&self) -> f64
pub fn inverse(&self) -> Self
pub fn diagonal(&self) -> Vec3
pub fn trace(&self) -> f64
Trait Implementations§
impl Copy for Mat3
impl StructuralPartialEq for Mat3
Auto Trait Implementations§
impl Freeze for Mat3
impl RefUnwindSafe for Mat3
impl Send for Mat3
impl Sync for Mat3
impl Unpin for Mat3
impl UnsafeUnpin for Mat3
impl UnwindSafe for Mat3
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