Struct libreda_db::prelude::Rot90Transform[][src]

pub struct Rot90Transform { /* fields omitted */ }

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) -> Rot90Transform[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>(&self, p: Point<T>) -> Point<T> where
    T: CoordinateType
[src]

Apply the transformation to a single point.

pub fn magnification<T>(&self) -> T where
    T: CoordinateType
[src]

Get the magnification of this transformation. Always 1.

pub fn try_magnification<T>(&self) -> Option<T> where
    T: CoordinateType
[src]

Get the magnification of this transformation. Always Some(1).

Trait Implementations

impl Clone for Rot90Transform[src]

impl Debug for Rot90Transform[src]

impl Hash for Rot90Transform[src]

impl PartialEq<Rot90Transform> for Rot90Transform[src]

impl StructuralPartialEq for Rot90Transform[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.