pub struct Rot90Transform { /* private fields */ }Expand description
Transformation that consists only of a rotation by a multiple of 90 degrees
around the origin (0, 0).
Implementations§
Source§impl Rot90Transform
impl Rot90Transform
Sourcepub fn is_unitary(&self) -> bool
pub fn is_unitary(&self) -> bool
This transformation is always unitary. Returns always true.
Sourcepub fn transform_point<T: CoordinateType>(&self, p: Point<T>) -> Point<T>
pub fn transform_point<T: CoordinateType>(&self, p: Point<T>) -> Point<T>
Apply the transformation to a single point.
Sourcepub fn magnification<T: CoordinateType>(&self) -> T
pub fn magnification<T: CoordinateType>(&self) -> T
Get the magnification of this transformation. Always 1.
Sourcepub fn try_magnification<T: CoordinateType>(&self) -> Option<T>
pub fn try_magnification<T: CoordinateType>(&self) -> Option<T>
Get the magnification of this transformation. Always Some(1).
Trait Implementations§
Source§impl Clone for Rot90Transform
impl Clone for Rot90Transform
Source§fn clone(&self) -> Rot90Transform
fn clone(&self) -> Rot90Transform
Returns a duplicate 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 Rot90Transform
impl Debug for Rot90Transform
Source§impl Hash for Rot90Transform
impl Hash for Rot90Transform
Source§impl PartialEq for Rot90Transform
impl PartialEq for Rot90Transform
impl Eq for Rot90Transform
impl StructuralPartialEq for Rot90Transform
Auto Trait Implementations§
impl Freeze for Rot90Transform
impl RefUnwindSafe for Rot90Transform
impl Send for Rot90Transform
impl Sync for Rot90Transform
impl Unpin for Rot90Transform
impl UnwindSafe for Rot90Transform
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