Trait libreda_pnr::db::MapPointwise [−]
Transform the geometrical object by transforming each point of it.
Required methods
pub fn transform<F>(&self, transformation: F) -> Self where
F: Fn(Point<T>) -> Point<T>,
F: Fn(Point<T>) -> Point<T>,
Point wise transformation.
Implementors
impl<T> MapPointwise<T> for Edge<T> where
T: CoordinateType,
T: CoordinateType,
impl<T> MapPointwise<T> for MultiPolygon<T> where
T: CoordinateType,
T: CoordinateType,
pub fn transform<F>(&self, tf: F) -> MultiPolygon<T> where
F: Fn(Point<T>) -> Point<T>,
F: Fn(Point<T>) -> Point<T>,
impl<T> MapPointwise<T> for Point<T> where
T: CoordinateType,
T: CoordinateType,
Point wise transformation for a single point.
pub fn transform<F>(&self, transformation: F) -> Point<T> where
F: Fn(Point<T>) -> Point<T>,
F: Fn(Point<T>) -> Point<T>,
Point wise transformation.
impl<T> MapPointwise<T> for PointString<T> where
T: CoordinateType,
T: CoordinateType,
pub fn transform<F>(&self, tf: F) -> PointString<T> where
F: Fn(Point<T>) -> Point<T>,
F: Fn(Point<T>) -> Point<T>,
impl<T> MapPointwise<T> for Polygon<T> where
T: CoordinateType,
T: CoordinateType,
impl<T> MapPointwise<T> for Rect<T> where
T: CoordinateType,
T: CoordinateType,
Point wise transformation of the two corner points.
pub fn transform<F>(&self, transformation: F) -> Rect<T> where
F: Fn(Point<T>) -> Point<T>,
F: Fn(Point<T>) -> Point<T>,
Point wise transformation.
impl<T> MapPointwise<T> for SimplePolygon<T> where
T: CoordinateType,
T: CoordinateType,
pub fn transform<F>(&self, tf: F) -> SimplePolygon<T> where
F: Fn(Point<T>) -> Point<T>,
F: Fn(Point<T>) -> Point<T>,
impl<T> MapPointwise<T> for Vector<T> where
T: CoordinateType,
T: CoordinateType,
impl<T, S> MapPointwise<T> for Text<T, S> where
S: Clone,
T: CoordinateType,
S: Clone,
T: CoordinateType,
Point wise transformation for a single point.