[−][src]Struct mkv_chain::linalg::Matrix3
3 by 3 stack stored square matrix composed of three Vec3
Methods
impl Matrix3
[src]
pub fn new(data: [[f64; 3]; 3]) -> Self
[src]
Construct a Matrix from a row major representation
pub const fn zeros() -> Self
[src]
Create an empty matrix
pub const fn shape() -> (usize, usize)
[src]
Shape of the matrix
pub fn to_row_major(self) -> Self
[src]
Create a row major matrix from a column major one
pub fn iter(&self) -> Iter<Vec3>
[src]
Turn the matrix into a interator of it's vectors
Trait Implementations
impl Default for Matrix3
[src]
impl Clone for Matrix3
[src]
impl PartialOrd<Matrix3> for Matrix3
[src]
fn partial_cmp(&self, other: &Matrix3) -> Option<Ordering>
[src]
fn lt(&self, other: &Matrix3) -> bool
[src]
fn le(&self, other: &Matrix3) -> bool
[src]
fn gt(&self, other: &Matrix3) -> bool
[src]
fn ge(&self, other: &Matrix3) -> bool
[src]
impl PartialEq<Matrix3> for Matrix3
[src]
impl Copy for Matrix3
[src]
impl Mul<Matrix3> for Matrix3
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self::Output
[src]
impl Mul<Vec3> for Matrix3
[src]
type Output = Vec3
The resulting type after applying the *
operator.
fn mul(self, other: Vec3) -> Self::Output
[src]
impl Index<(usize, usize)> for Matrix3
[src]
type Output = f64
The returned type after indexing.
fn index(&self, idx: (usize, usize)) -> &Self::Output
[src]
impl Index<usize> for Matrix3
[src]
type Output = Vec3
The returned type after indexing.
fn index(&self, idx: usize) -> &Self::Output
[src]
impl IndexMut<(usize, usize)> for Matrix3
[src]
impl IndexMut<usize> for Matrix3
[src]
impl Debug for Matrix3
[src]
Auto Trait Implementations
impl Send for Matrix3
impl Unpin for Matrix3
impl Sync for Matrix3
impl UnwindSafe for Matrix3
impl RefUnwindSafe for Matrix3
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,