[−][src]Struct imath::matrix::Matrix33
3x3 Matrix type over Real
Fields
x: [T; 9]
Methods
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 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]
T: Real,
Returns a new matrix specifying a translation of t
pub fn scale(s: Vec2<T>) -> Matrix33<T> where
T: Real,
[src]
T: Real,
Returns a new matrix specifying a scale of s
pub fn rotate(r: T) -> Matrix33<T> where
T: Real,
[src]
T: Real,
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]
T: Real,
impl<T: Clone> Clone 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: Copy> Copy for Matrix33<T> where
T: Real,
[src]
T: Real,
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> Sub<T> for Matrix33<T> where
T: Real,
[src]
T: Real,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: T) -> Self
[src]
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<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> 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<T> Neg for Matrix33<T> where
T: Real,
[src]
T: Real,
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: Debug> Debug for Matrix33<T> where
T: Real,
[src]
T: Real,
Auto Trait Implementations
impl<T> Send for Matrix33<T> where
T: Send,
T: Send,
impl<T> Unpin for Matrix33<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for Matrix33<T> where
T: Sync,
T: Sync,
impl<T> UnwindSafe for Matrix33<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Matrix33<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
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,