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