Struct rust_3d::Matrix3Pipe
[−]
[src]
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: Matrix3
mrotation: Matrix3
mscale: 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 Default for Matrix3Pipe
[src]
fn default() -> Matrix3Pipe
[src]
Returns the "default value" for a type. Read more
impl Debug for Matrix3Pipe
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Matrix3Pipe
[src]
fn eq(&self, __arg_0: &Matrix3Pipe) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Matrix3Pipe) -> bool
[src]
This method tests for !=
.
impl PartialOrd for Matrix3Pipe
[src]
fn partial_cmp(&self, __arg_0: &Matrix3Pipe) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Matrix3Pipe) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Matrix3Pipe) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Matrix3Pipe) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Matrix3Pipe) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Clone for Matrix3Pipe
[src]
fn clone(&self) -> Matrix3Pipe
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more