pub struct Matrix3Pipe {
pub mtranslation: Matrix3,
pub mrotation: Matrix3,
pub mscale: Matrix3,
}
Expand description
Matrix3Pipe, which makes it easier to pipe different matrices in a defined order
Fields§
§mtranslation: Matrix3
§mrotation: Matrix3
§mscale: Matrix3
Implementations§
Source§impl Matrix3Pipe
impl Matrix3Pipe
Sourcepub fn result(&self) -> Matrix3
pub fn result(&self) -> Matrix3
Creates a new matrix as a result of all defined operations set within the pipe
Sourcepub fn add_translation(&mut self, x: f64, y: f64)
pub fn add_translation(&mut self, x: f64, y: f64)
Adds a translation to the pipe
Sourcepub fn remove_translation(&mut self)
pub fn remove_translation(&mut self)
Removes any translation from the pipe
Sourcepub fn add_rotation(&mut self, rad: Rad)
pub fn add_rotation(&mut self, rad: Rad)
Adds a rotation to the pipe
Sourcepub fn remove_rotation(&mut self)
pub fn remove_rotation(&mut self)
Removes any rotation from the pipe
Sourcepub fn remove_scale(&mut self)
pub fn remove_scale(&mut self)
Removes any scaling from the pipe
Trait Implementations§
Source§impl Clone for Matrix3Pipe
impl Clone for Matrix3Pipe
Source§fn clone(&self) -> Matrix3Pipe
fn clone(&self) -> Matrix3Pipe
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Matrix3Pipe
impl Debug for Matrix3Pipe
Source§impl Default for Matrix3Pipe
impl Default for Matrix3Pipe
Source§fn default() -> Matrix3Pipe
fn default() -> Matrix3Pipe
Returns the “default value” for a type. Read more
Source§impl PartialEq for Matrix3Pipe
impl PartialEq for Matrix3Pipe
Source§impl PartialOrd for Matrix3Pipe
impl PartialOrd for Matrix3Pipe
impl StructuralPartialEq for Matrix3Pipe
Auto Trait Implementations§
impl Freeze for Matrix3Pipe
impl RefUnwindSafe for Matrix3Pipe
impl Send for Matrix3Pipe
impl Sync for Matrix3Pipe
impl Unpin for Matrix3Pipe
impl UnwindSafe for Matrix3Pipe
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more