#[repr(C)]pub struct Matrix4<T>where
T: Scalar,{
pub col: [Vector4<T>; 4],
}
Fields§
§col: [Vector4<T>; 4]
Implementations§
Source§impl<T> Matrix4<T>where
T: Scalar,
impl<T> Matrix4<T>where
T: Scalar,
pub fn new( m0: T, m1: T, m2: T, m3: T, m4: T, m5: T, m6: T, m7: T, m8: T, m9: T, m10: T, m11: T, m12: T, m13: T, m14: T, m15: T, ) -> Matrix4<T>
pub fn identity() -> Matrix4<T>
pub fn determinant(&self) -> T
pub fn transpose(&self) -> Matrix4<T>
pub fn inverse(&self) -> Matrix4<T>
pub fn mul_matrix_matrix(l: &Matrix4<T>, r: &Matrix4<T>) -> Matrix4<T>
pub fn mul_matrix_vector(l: &Matrix4<T>, r: &Vector4<T>) -> Vector4<T>
pub fn mul_vector_matrix(l: &Vector4<T>, r: &Matrix4<T>) -> Vector4<T>
pub fn add_matrix_matrix(l: &Matrix4<T>, r: &Matrix4<T>) -> Matrix4<T>
pub fn sub_matrix_matrix(l: &Matrix4<T>, r: &Matrix4<T>) -> Matrix4<T>
Trait Implementations§
Source§impl AttributeDataTypeGetter for Matrix4<f32>
impl AttributeDataTypeGetter for Matrix4<f32>
Source§impl<T> Matrix4Extension<T> for Matrix4<T>where
T: Scalar,
impl<T> Matrix4Extension<T> for Matrix4<T>where
T: Scalar,
Source§impl UniformDataTypeGetter for Matrix4<f32>
impl UniformDataTypeGetter for Matrix4<f32>
impl<T> Copy for Matrix4<T>
Auto Trait Implementations§
impl<T> Freeze for Matrix4<T>where
T: Freeze,
impl<T> RefUnwindSafe for Matrix4<T>where
T: RefUnwindSafe,
impl<T> Send for Matrix4<T>where
T: Send,
impl<T> Sync for Matrix4<T>where
T: Sync,
impl<T> Unpin for Matrix4<T>where
T: Unpin,
impl<T> UnwindSafe for Matrix4<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