pub trait MapPointwise<T> {
    // Required method
    fn transform<F>(&self, transformation: F) -> Self
       where F: Fn(Point<T>) -> Point<T>;
}
Expand description

Transform the geometrical object by transforming each point of it.

Required Methods§

source

fn transform<F>(&self, transformation: F) -> Selfwhere F: Fn(Point<T>) -> Point<T>,

Point wise transformation.

Implementors§

source§

impl<T> MapPointwise<T> for MultiPolygon<T>where T: CoordinateType,

source§

impl<T> MapPointwise<T> for PointString<T>where T: Copy,

source§

impl<T> MapPointwise<T> for Polygon<T>where T: CoordinateType,

source§

impl<T> MapPointwise<T> for SimplePolygon<T>where T: CoordinateType,

source§

impl<T, S> MapPointwise<T> for Text<T, S>where T: Copy, S: Clone,

Point wise transformation for a single point.

source§

impl<T: CoordinateType> MapPointwise<T> for Vector<T>

source§

impl<T: Copy + PartialOrd> MapPointwise<T> for Rect<T>

Point wise transformation of the two corner points.

source§

impl<T: Copy> MapPointwise<T> for Edge<T>

source§

impl<T: Copy> MapPointwise<T> for Point<T>

Point wise transformation for a single point.