pub struct Matrix3<T: PhysicsQuantity> { /* private fields */ }Implementations§
Source§impl<T: PhysicsQuantity> Matrix3<T>
impl<T: PhysicsQuantity> Matrix3<T>
pub fn new(data: [[T; 3]; 3]) -> Self
pub fn zero() -> Self
pub fn from_f64(data: [[f64; 3]; 3]) -> Self
pub fn data(&self) -> [[T; 3]; 3]
pub fn to_raw(&self) -> Matrix3<f64>
👎Deprecated since 0.2.9: please use
as_f64() insteadpub fn as_f64(&self) -> Matrix3<f64>
pub fn from_raw(raw: Matrix3<f64>) -> Self
👎Deprecated since 0.2.9: please use
from insteadpub fn from_rows(rows: &[Vector3<T>; 3]) -> Self
pub fn from_columns(columns: &[Vector3<T>; 3]) -> Self
pub fn get_column(&self, col: usize) -> Vector3<T>
pub fn set_column(&mut self, col: usize, vec: Vector3<T>)
pub fn get_row(&self, row: usize) -> Vector3<T>
pub fn set_row(&mut self, row: usize, vec: Vector3<T>)
pub fn transpose(&self) -> Matrix3<T>
pub fn frobenius_norm(&self) -> T
pub fn optimize(&mut self)
Source§impl<T: PhysicsQuantity> Matrix3<T>
impl<T: PhysicsQuantity> Matrix3<T>
Source§impl<T, U, V: PhysicsQuantity> Matrix3<T>
impl<T, U, V: PhysicsQuantity> Matrix3<T>
Source§impl<T, U, V, R> Matrix3<T>where
T: PhysicsQuantity + Mul<T, Output = U> + Mul<U, Output = V>,
U: PhysicsQuantity + Mul<T, Output = V> + Div<V, Output = R>,
V: PhysicsQuantity,
R: PhysicsQuantity,
impl<T, U, V, R> Matrix3<T>where
T: PhysicsQuantity + Mul<T, Output = U> + Mul<U, Output = V>,
U: PhysicsQuantity + Mul<T, Output = V> + Div<V, Output = R>,
V: PhysicsQuantity,
R: PhysicsQuantity,
Trait Implementations§
Source§impl<T: PhysicsQuantity> Add for Matrix3<T>
impl<T: PhysicsQuantity> Add for Matrix3<T>
Source§impl<T: PhysicsQuantity> AddAssign for Matrix3<T>
impl<T: PhysicsQuantity> AddAssign for Matrix3<T>
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl<T, U, V> Mul<Matrix3x2<U>> for Matrix3<T>where
T: PhysicsQuantity + Mul<U, Output = V>,
U: PhysicsQuantity,
V: PhysicsQuantity + Add<Output = V>,
impl<T, U, V> Mul<Matrix3x2<U>> for Matrix3<T>where
T: PhysicsQuantity + Mul<U, Output = V>,
U: PhysicsQuantity,
V: PhysicsQuantity + Add<Output = V>,
Source§impl<T: PhysicsQuantity> Sub for Matrix3<T>
impl<T: PhysicsQuantity> Sub for Matrix3<T>
Source§impl<T: PhysicsQuantity> SubAssign for Matrix3<T>
impl<T: PhysicsQuantity> SubAssign for Matrix3<T>
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreimpl<T: Copy + PhysicsQuantity> Copy for Matrix3<T>
impl<T: PhysicsQuantity> StructuralPartialEq 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