[][src]Struct rust_3d::Matrix3

pub struct Matrix3 {
    pub data: [[f64; 3]; 3],
}

Matrix3, a matrix with 3 rows and columns

Fields

data: [[f64; 3]; 3]

Implementations

impl Matrix3[src]

pub fn identity() -> Matrix3[src]

Creates a new identity matrix

pub fn zeroes() -> Matrix3[src]

Creates a new matrix which contains only zeroes

pub fn translation(x: f64, y: f64) -> Matrix3[src]

Creates a new matrix which applies translation

pub fn scale(x: f64, y: f64) -> Matrix3[src]

Creates a new matrix which applies scaling

pub fn rotation(rad: Rad) -> Matrix3[src]

Creates a new matrix which applies rotation

Trait Implementations

impl Clone for Matrix3[src]

impl Debug for Matrix3[src]

impl Default for Matrix3[src]

impl<'_> Mul<&'_ Matrix3> for Matrix3[src]

type Output = Self

The resulting type after applying the * operator.

impl<'_> Mul<&'_ Matrix3> for &'_ Matrix3[src]

type Output = Matrix3

The resulting type after applying the * operator.

impl Mul<Matrix3> for Matrix3[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<f64> for Matrix3[src]

type Output = Self

The resulting type after applying the * operator.

impl<'_> Mul<f64> for &'_ Matrix3[src]

type Output = Matrix3

The resulting type after applying the * operator.

impl PartialEq<Matrix3> for Matrix3[src]

impl PartialOrd<Matrix3> for Matrix3[src]

impl StructuralPartialEq for Matrix3[src]

Auto Trait Implementations

impl RefUnwindSafe for Matrix3

impl Send for Matrix3

impl Sync for Matrix3

impl Unpin for Matrix3

impl UnwindSafe for Matrix3

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.