[−][src]Struct mkv_chain::linalg::Matrix4
4 by 4 stack stored square matrix composed of four Vec4
Methods
impl Matrix4[src]
pub fn new(data: [[f64; 4]; 4]) -> 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<Vec4>[src]
Turn the matrix into a interator of it's vectors
Trait Implementations
impl Default for Matrix4[src]
impl Clone for Matrix4[src]
impl PartialOrd<Matrix4> for Matrix4[src]
fn partial_cmp(&self, other: &Matrix4) -> Option<Ordering>[src]
fn lt(&self, other: &Matrix4) -> bool[src]
fn le(&self, other: &Matrix4) -> bool[src]
fn gt(&self, other: &Matrix4) -> bool[src]
fn ge(&self, other: &Matrix4) -> bool[src]
impl PartialEq<Matrix4> for Matrix4[src]
impl Copy for Matrix4[src]
impl Mul<Matrix4> for Matrix4[src]
type Output = Self
The resulting type after applying the * operator.
fn mul(self, other: Self) -> Self::Output[src]
impl Mul<Vec4> for Matrix4[src]
type Output = Vec4
The resulting type after applying the * operator.
fn mul(self, other: Vec4) -> Self::Output[src]
impl Index<(usize, usize)> for Matrix4[src]
type Output = f64
The returned type after indexing.
fn index(&self, idx: (usize, usize)) -> &Self::Output[src]
impl Index<usize> for Matrix4[src]
type Output = Vec4
The returned type after indexing.
fn index(&self, idx: usize) -> &Self::Output[src]
impl IndexMut<(usize, usize)> for Matrix4[src]
impl IndexMut<usize> for Matrix4[src]
impl Debug for Matrix4[src]
Auto Trait Implementations
impl Send for Matrix4
impl Unpin for Matrix4
impl Sync for Matrix4
impl UnwindSafe for Matrix4
impl RefUnwindSafe for Matrix4
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,