Skip to main content

MapPointwise

Trait MapPointwise 

Source
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) -> Self
where F: Fn(Point<T>) -> Point<T>,

Point wise transformation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

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> MapPointwise<T> for Edge<T>
where T: Copy,

Source§

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

Source§

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

Point wise transformation for a single point.

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 Rect<T>
where T: Copy + PartialOrd,

Point wise transformation of the two corner points.

Source§

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

Source§

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