[][src]Struct mkv_chain::linalg::Matrix3

pub struct 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]

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.

impl Mul<Vec3> for Matrix3[src]

type Output = Vec3

The resulting type after applying the * operator.

impl Index<(usize, usize)> for Matrix3[src]

type Output = f64

The returned type after indexing.

impl Index<usize> for Matrix3[src]

type Output = Vec3

The returned type after indexing.

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]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]