Trait iron_shapes::traits::MapPointwise[][src]

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

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]

Point wise transformation.

Loading content...

Implementors

impl<T> MapPointwise<T> for MultiPolygon<T> where
    T: CoordinateType
[src]

impl<T> MapPointwise<T> for Point<T> where
    T: CoordinateType
[src]

Point wise transformation for a single point.

fn transform<F>(&self, transformation: F) -> Self where
    F: Fn(Point<T>) -> Point<T>, 
[src]

Point wise transformation.

impl<T> MapPointwise<T> for PointString<T> where
    T: CoordinateType
[src]

impl<T> MapPointwise<T> for Polygon<T> where
    T: CoordinateType
[src]

impl<T> MapPointwise<T> for Rect<T> where
    T: CoordinateType
[src]

Point wise transformation of the two corner points.

fn transform<F>(&self, transformation: F) -> Self where
    F: Fn(Point<T>) -> Point<T>, 
[src]

Point wise transformation.

impl<T> MapPointwise<T> for SimplePolygon<T> where
    T: CoordinateType
[src]

impl<T, S> MapPointwise<T> for Text<T, S> where
    T: CoordinateType,
    S: Clone
[src]

Point wise transformation for a single point.

fn transform<F>(&self, transformation: F) -> Self where
    F: Fn(Point<T>) -> Point<T>, 
[src]

Point wise transformation.

impl<T: CoordinateType> MapPointwise<T> for Edge<T>[src]

impl<T: CoordinateType> MapPointwise<T> for Vector<T>[src]

Loading content...