[][src]Struct colorspace::math::Matrix33

#[repr(C)]pub struct Matrix33<T> where
    T: Real
{ pub x: [T; 9], }

3x3 Matrix type

Based on the Imath implementation https://github.com/openexr/openexr Copyright (c) 2006-17, Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. Portions contributed and copyright held by others as indicated. All rights reserved.

Fields

x: [T; 9]

Implementations

impl<T> Matrix33<T> where
    T: Real
[src]

pub fn make_identity() -> Matrix33<T>[src]

Return a new identity matrix

pub fn new(values: [T; 9]) -> Matrix33<T>[src]

Return a new matrix initialized with the values passed

pub fn transposed(&self) -> Matrix33<T>[src]

Return the transpose of this matrix

pub fn determinant(&self) -> T[src]

Return the determinant of this matrix

pub fn gj_inverse(&self) -> Option<Matrix33<T>>[src]

Gauss-Jordan matrix inversion

pub fn inverse(self) -> Option<Matrix33<T>>[src]

Matrix inverse

Trait Implementations

impl<T> Add<T> for Matrix33<T> where
    T: Real
[src]

type Output = Self

The resulting type after applying the + operator.

impl<T: Clone> Clone for Matrix33<T> where
    T: Real
[src]

impl<T: Copy> Copy for Matrix33<T> where
    T: Real
[src]

impl<T: Debug> Debug for Matrix33<T> where
    T: Real
[src]

impl<T> Div<T> for Matrix33<T> where
    T: Real
[src]

type Output = Self

The resulting type after applying the / operator.

impl From<Matrix33<f64>> for M3f32[src]

impl<T> Index<usize> for Matrix33<T> where
    T: Real
[src]

Index operator. Returns a slice of the underlying matrix to allow m[i][j] indexing

type Output = [T]

The returned type after indexing.

impl<T> IndexMut<usize> for Matrix33<T> where
    T: Real
[src]

Mutable Index operator. Returns a slice of the underlying matrix to allow m[i][j] indexing

impl<T> Mul<Matrix33<T>> for Matrix33<T> where
    T: Real
[src]

type Output = Self

The resulting type after applying the * operator.

impl<T> Mul<RGBf<T>> for Matrix33<T> where
    T: Real
[src]

type Output = RGBf<T>

The resulting type after applying the * operator.

impl<T> Mul<T> for Matrix33<T> where
    T: Real
[src]

type Output = Self

The resulting type after applying the * operator.

impl<T> Mul<XYZ<T>> for Matrix33<T> where
    T: Real
[src]

type Output = XYZ<T>

The resulting type after applying the * operator.

impl<T> Neg for Matrix33<T> where
    T: Real
[src]

type Output = Self

The resulting type after applying the - operator.

impl<T: PartialEq> PartialEq<Matrix33<T>> for Matrix33<T> where
    T: Real
[src]

impl<T> StructuralPartialEq for Matrix33<T> where
    T: Real
[src]

impl<T> Sub<T> for Matrix33<T> where
    T: Real
[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

impl<T> RefUnwindSafe for Matrix33<T> where
    T: RefUnwindSafe

impl<T> Send for Matrix33<T> where
    T: Send

impl<T> Sync for Matrix33<T> where
    T: Sync

impl<T> Unpin for Matrix33<T> where
    T: Unpin

impl<T> UnwindSafe for Matrix33<T> where
    T: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,