[][src]Struct rust_3d::Matrix3Pipe

pub struct Matrix3Pipe {
    pub mtranslation: Matrix3,
    pub mrotation: Matrix3,
    pub mscale: Matrix3,
}

Matrix3Pipe, which makes it easier to pipe different matrices in a defined order

Fields

mtranslation: Matrix3mrotation: Matrix3mscale: Matrix3

Methods

impl Matrix3Pipe[src]

pub fn result(&self) -> Matrix3[src]

Creates a new matrix as a result of all defined operations set within the pipe

pub fn add_translation(&mut self, x: f64, y: f64)[src]

Adds a translation to the pipe

pub fn remove_translation(&mut self)[src]

Removes any translation from the pipe

pub fn add_rotation(&mut self, rad: Rad)[src]

Adds a rotation to the pipe

pub fn remove_rotation(&mut self)[src]

Removes any rotation from the pipe

pub fn add_scale(&mut self, x: f64, y: f64)[src]

Adds scaling to the pipe

pub fn remove_scale(&mut self)[src]

Removes any scaling from the pipe

Trait Implementations

impl Clone for Matrix3Pipe[src]

impl Debug for Matrix3Pipe[src]

impl Default for Matrix3Pipe[src]

impl PartialEq<Matrix3Pipe> for Matrix3Pipe[src]

impl PartialOrd<Matrix3Pipe> for Matrix3Pipe[src]

impl StructuralPartialEq for Matrix3Pipe[src]

Auto Trait Implementations

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.