Struct libreda_pnr::db::Rot90Transform [−]
Transformation that consists only of a rotation by a multiple of 90 degrees
around the origin (0, 0)
.
Implementations
impl Rot90Transform
pub fn new(angle: Angle) -> Rot90Transform
Create a new rotation transformation.
pub fn is_unitary(&self) -> bool
This transformation is always unitary. Returns always true
.
pub fn transform_point<T>(&self, p: Point<T>) -> Point<T> where
T: CoordinateType,
T: CoordinateType,
Apply the transformation to a single point.
pub fn magnification<T>(&self) -> T where
T: CoordinateType,
T: CoordinateType,
Get the magnification of this transformation. Always 1
.
pub fn try_magnification<T>(&self) -> Option<T> where
T: CoordinateType,
T: CoordinateType,
Get the magnification of this transformation. Always Some(1)
.
Trait Implementations
impl Clone for Rot90Transform
pub fn clone(&self) -> Rot90Transform
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Rot90Transform
impl Hash for Rot90Transform
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Rot90Transform> for Rot90Transform
pub fn eq(&self, other: &Rot90Transform) -> bool
pub fn ne(&self, other: &Rot90Transform) -> bool
impl StructuralPartialEq for Rot90Transform
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>,