#[repr(C)]pub struct Matrix2<T>where
T: Scalar,{
pub col: [Vector2<T>; 2],
}
Fields§
§col: [Vector2<T>; 2]
Implementations§
Source§impl<T> Matrix2<T>where
T: Scalar,
impl<T> Matrix2<T>where
T: Scalar,
pub fn new(m0: T, m1: T, m2: T, m3: T) -> Matrix2<T>
pub fn identity() -> Matrix2<T>
pub fn determinant(&self) -> T
pub fn transpose(&self) -> Matrix2<T>
pub fn inverse(&self) -> Matrix2<T>
pub fn mul_matrix_matrix(l: &Matrix2<T>, r: &Matrix2<T>) -> Matrix2<T>
pub fn mul_matrix_vector(l: &Matrix2<T>, r: &Vector2<T>) -> Vector2<T>
pub fn mul_vector_matrix(l: &Vector2<T>, r: &Matrix2<T>) -> Vector2<T>
pub fn add_matrix_matrix(l: &Matrix2<T>, r: &Matrix2<T>) -> Matrix2<T>
pub fn sub_matrix_matrix(l: &Matrix2<T>, r: &Matrix2<T>) -> Matrix2<T>
Trait Implementations§
Source§impl AttributeDataTypeGetter for Matrix2<f32>
impl AttributeDataTypeGetter for Matrix2<f32>
Source§impl UniformDataTypeGetter for Matrix2<f32>
impl UniformDataTypeGetter for Matrix2<f32>
impl<T> Copy for Matrix2<T>
Auto Trait Implementations§
impl<T> Freeze for Matrix2<T>where
T: Freeze,
impl<T> RefUnwindSafe for Matrix2<T>where
T: RefUnwindSafe,
impl<T> Send for Matrix2<T>where
T: Send,
impl<T> Sync for Matrix2<T>where
T: Sync,
impl<T> Unpin for Matrix2<T>where
T: Unpin,
impl<T> UnwindSafe for Matrix2<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