[−][src]Struct colorspace::math::Matrix33
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]
T: Real,
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]
T: Real,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: T) -> Self
[src]
impl<T: Clone> Clone for Matrix33<T> where
T: Real,
[src]
T: Real,
impl<T: Copy> Copy for Matrix33<T> where
T: Real,
[src]
T: Real,
impl<T: Debug> Debug for Matrix33<T> where
T: Real,
[src]
T: Real,
impl<T> Div<T> for Matrix33<T> where
T: Real,
[src]
T: Real,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: T) -> Self
[src]
impl From<Matrix33<f64>> for M3f32
[src]
impl<T> Index<usize> for Matrix33<T> where
T: Real,
[src]
T: Real,
Index operator. Returns a slice of the underlying matrix to allow
m[i][j]
indexing
impl<T> IndexMut<usize> for Matrix33<T> where
T: Real,
[src]
T: Real,
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]
T: Real,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
impl<T> Mul<RGBf<T>> for Matrix33<T> where
T: Real,
[src]
T: Real,
type Output = RGBf<T>
The resulting type after applying the *
operator.
fn mul(self, rgb: RGBf<T>) -> RGBf<T>
[src]
impl<T> Mul<T> for Matrix33<T> where
T: Real,
[src]
T: Real,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self
[src]
impl<T> Mul<XYZ<T>> for Matrix33<T> where
T: Real,
[src]
T: Real,
type Output = XYZ<T>
The resulting type after applying the *
operator.
fn mul(self, xyz: XYZ<T>) -> XYZ<T>
[src]
impl<T> Neg for Matrix33<T> where
T: Real,
[src]
T: Real,
impl<T: PartialEq> PartialEq<Matrix33<T>> for Matrix33<T> where
T: Real,
[src]
T: Real,
impl<T> StructuralPartialEq for Matrix33<T> where
T: Real,
[src]
T: Real,
impl<T> Sub<T> for Matrix33<T> where
T: Real,
[src]
T: Real,
Auto Trait Implementations
impl<T> RefUnwindSafe for Matrix33<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Matrix33<T> where
T: Send,
T: Send,
impl<T> Sync for Matrix33<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Matrix33<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Matrix33<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,