#[repr(C)]pub struct Matrix3<T: Scalar> {
pub col: [Vector3<T>; 3],
}
Fields§
§col: [Vector3<T>; 3]
Implementations§
source§impl<T: Scalar> Matrix3<T>
impl<T: Scalar> Matrix3<T>
pub fn new( m0: T, m1: T, m2: T, m3: T, m4: T, m5: T, m6: T, m7: T, m8: T ) -> Self
pub fn identity() -> Self
pub fn determinant(&self) -> T
pub fn transpose(&self) -> Self
pub fn inverse(&self) -> Self
pub fn mul_matrix_matrix(l: &Self, r: &Self) -> Self
pub fn mul_matrix_vector(l: &Self, r: &Vector3<T>) -> Vector3<T>
pub fn mul_vector_matrix(l: &Vector3<T>, r: &Self) -> Vector3<T>
pub fn add_matrix_matrix(l: &Self, r: &Self) -> Self
pub fn sub_matrix_matrix(l: &Self, r: &Self) -> Self
source§impl<T: FloatScalar> Matrix3<T>
impl<T: FloatScalar> Matrix3<T>
pub fn of_axis_angle(axis: &Vector3<T>, angle: T) -> Self
Trait Implementations§
impl<T: Copy + Scalar> Copy for Matrix3<T>
Auto Trait Implementations§
impl<T> Freeze for Matrix3<T>where
T: Freeze,
impl<T> RefUnwindSafe for Matrix3<T>where
T: RefUnwindSafe,
impl<T> Send for Matrix3<T>where
T: Send,
impl<T> Sync for Matrix3<T>where
T: Sync,
impl<T> Unpin for Matrix3<T>where
T: Unpin,
impl<T> UnwindSafe for Matrix3<T>where
T: UnwindSafe,
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