Struct iron_shapes::transform::Rot90Transform [−][src]
Transformation that consists only of a rotation by a multiple of 90 degrees
around the origin (0, 0)
.
Implementations
impl Rot90Transform
[src]
pub fn new(angle: Angle) -> Self
[src]
Create a new rotation transformation.
pub fn is_unitary(&self) -> bool
[src]
This transformation is always unitary. Returns always true
.
pub fn transform_point<T: CoordinateType>(&self, p: Point<T>) -> Point<T>
[src]
Apply the transformation to a single point.
pub fn magnification<T: CoordinateType>(&self) -> T
[src]
Get the magnification of this transformation. Always 1
.
pub fn try_magnification<T: CoordinateType>(&self) -> Option<T>
[src]
Get the magnification of this transformation. Always Some(1)
.
Trait Implementations
impl Clone for Rot90Transform
[src]
fn clone(&self) -> Rot90Transform
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Rot90Transform
[src]
impl Hash for Rot90Transform
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Rot90Transform> for Rot90Transform
[src]
fn eq(&self, other: &Rot90Transform) -> bool
[src]
fn ne(&self, other: &Rot90Transform) -> bool
[src]
impl StructuralPartialEq for Rot90Transform
[src]
Auto Trait Implementations
impl RefUnwindSafe for Rot90Transform
impl Send for Rot90Transform
impl Sync for Rot90Transform
impl Unpin for Rot90Transform
impl UnwindSafe for Rot90Transform
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,