#[repr(C)]pub struct Matrix2<T: BaseFloat> {
pub c0: Vector2<T>,
pub c1: Vector2<T>,
}
Fields§
§c0: Vector2<T>
§c1: Vector2<T>
Implementations§
Source§impl<T: BaseFloat> Matrix2<T>
impl<T: BaseFloat> Matrix2<T>
pub fn new(c0: Vector2<T>, c1: Vector2<T>) -> Matrix2<T>
pub fn from_array(ary: &[Vector2<T>; 2]) -> &Matrix2<T>
pub fn from_array_mut(ary: &mut [Vector2<T>; 2]) -> &mut Matrix2<T>
pub fn as_array(&self) -> &[Vector2<T>; 2]
pub fn as_array_mut(&mut self) -> &mut [Vector2<T>; 2]
pub fn add_s(&self, rhs: T) -> Matrix2<T>
pub fn add_m(&self, rhs: &Matrix2<T>) -> Matrix2<T>
pub fn sub_s(&self, rhs: T) -> Matrix2<T>
pub fn sub_m(&self, rhs: &Matrix2<T>) -> Matrix2<T>
pub fn div_m(&self, rhs: &Matrix2<T>) -> Matrix2<T>
pub fn div_s(&self, rhs: T) -> Matrix2<T>
pub fn rem_m(&self, rhs: &Matrix2<T>) -> Matrix2<T>
pub fn rem_s(&self, rhs: T) -> Matrix2<T>
pub fn mul_s(&self, rhs: T) -> Matrix2<T>
pub fn mul_v(&self, rhs: &Vector2<T>) -> Vector2<T>
pub fn mul_m(&self, rhs: &Matrix2<T>) -> Matrix2<T>
pub fn neg_m(&self) -> Matrix2<T>
Trait Implementations§
Source§impl<T: BaseFloat> ApproxEq for Matrix2<T>
impl<T: BaseFloat> ApproxEq for Matrix2<T>
impl<T: Copy + BaseFloat> Copy for Matrix2<T>
impl<T: BaseFloat> StructuralPartialEq 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>
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