[][src]Struct imath::matrix::Matrix33

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

3x3 Matrix type over Real

Fields

x: [T; 9]

Methods

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 equal_with_abs_error(self, other: &Matrix33<T>, e: T) -> bool[src]

Compare 2 matrices for equality with absolute tolerance e

pub fn equal_with_rel_error(self, other: &Matrix33<T>, e: T) -> bool[src]

Compare 2 matrices for equality with relative tolerance e

pub fn translate(t: Vec2<T>) -> Matrix33<T> where
    T: Real
[src]

Returns a new matrix specifying a translation of t

pub fn scale(s: Vec2<T>) -> Matrix33<T> where
    T: Real
[src]

Returns a new matrix specifying a scale of s

pub fn rotate(r: T) -> Matrix33<T> where
    T: Real
[src]

Returns a new matrix specifying a rotation of r

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 transformp(self, v: Vec2<T>) -> Vec2<T>[src]

Transform the Vec2 v as a point

pub fn transformv(self, v: Vec2<T>) -> Vec2<T>[src]

Transform the Vec2 v as a vector

pub fn mult_vec_matrix(self, v: Vec2<T>) -> Vec2<T>[src]

Wrapper for Imath's confusingly named convention for matrix * point

pub fn mult_dir_matrix(self, v: Vec2<T>) -> Vec2<T>[src]

Wrapper for Imath's confusingly named convention for matrix * vector

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: Eq> Eq for Matrix33<T> where
    T: Real
[src]

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

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

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

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

type Output = Self

The resulting type after applying the + operator.

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

type Output = Self

The resulting type after applying the - operator.

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<T> for Matrix33<T> where
    T: Real
[src]

type Output = Self

The resulting type after applying the * operator.

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

type Output = Self

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> 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: Debug> Debug for Matrix33<T> where
    T: Real
[src]

Auto Trait Implementations

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

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

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

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

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

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]