Struct geo::MultiPolygon[][src]

pub struct MultiPolygon<T>(pub Vec<Polygon<T>>)
where
    T: CoordinateType
;

A collection of Polygons

Can be created from a Vec of Polygons, or collected from an Iterator which yields Polygons.

Iterating over this object yields the component Polygons.

Trait Implementations

impl<T, IP> FromIterator<IP> for MultiPolygon<T> where
    IP: Into<Polygon<T>>,
    T: CoordinateType
[src]

Creates a value from an iterator. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T, IP> From<IP> for MultiPolygon<T> where
    IP: Into<Polygon<T>>,
    T: CoordinateType
[src]

Performs the conversion.

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

Performs the conversion.

impl<T> Area<T> for MultiPolygon<T> where
    T: Float
[src]

Signed area of a geometry. Read more

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

Return the BoundingRect for a MultiPolygon

impl<T> Centroid<T> for MultiPolygon<T> where
    T: Float + FromPrimitive + Sum
[src]

See: https://en.wikipedia.org/wiki/Centroid Read more

impl<F: Float> ClosestPoint<F> for MultiPolygon<F>
[src]

Find the closest point between self and p.

impl<T> Contains<Point<T>> for MultiPolygon<T> where
    T: Float
[src]

Checks if rhs is completely contained within self. Read more

impl<T> ConvexHull<T> for MultiPolygon<T> where
    T: Float
[src]

Returns the convex hull of a Polygon. The hull is always oriented counter-clockwise. Read more

impl<T> EuclideanDistance<T, MultiPolygon<T>> for Point<T> where
    T: Float
[src]

Minimum distance from a Point to a MultiPolygon

impl<T> EuclideanDistance<T, Point<T>> for MultiPolygon<T> where
    T: Float
[src]

Minimum distance from a MultiPolygon to a Point

impl<T> EuclideanDistance<T, MultiPolygon<T>> for Line<T> where
    T: Float + FloatConst + Signed + SpadeFloat
[src]

Line to MultiPolygon distance

Returns the distance between two geometries Read more

impl<T> EuclideanDistance<T, Line<T>> for MultiPolygon<T> where
    T: Float + FloatConst + Signed + SpadeFloat
[src]

MultiPolygon to Line distance

Returns the distance between two geometries Read more

impl<T> ExtremeIndices<T> for MultiPolygon<T> where
    T: Float + Signed
[src]

Find the extreme x and y indices of a convex Polygon Read more

impl<T: CoordinateType, NT: CoordinateType> MapCoords<T, NT> for MultiPolygon<T>
[src]

Apply a function to all the coordinates in a geometric object, returning a new object. Read more

impl<T: CoordinateType, NT: CoordinateType> TryMapCoords<T, NT> for MultiPolygon<T>
[src]

Map a fallible function over all the coordinates in a geometry, returning a Result Read more

impl<T: CoordinateType> MapCoordsInplace<T> for MultiPolygon<T>
[src]

Apply a function to all the coordinates in a geometric object, in place Read more

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

Orients a Polygon's exterior and interior rings according to convention Read more

impl<T> Rotate<T> for MultiPolygon<T> where
    T: Float + FromPrimitive + Sum
[src]

Rotate the contained Polygons about their centroids by the given number of degrees

impl<T> Simplify<T> for MultiPolygon<T> where
    T: Float
[src]

Returns the simplified representation of a geometry, using the Ramer–Douglas–Peucker algorithm Read more

impl<T> SimplifyVWPreserve<T> for MultiPolygon<T> where
    T: Float + SpadeFloat
[src]

Returns the simplified representation of a geometry, using a topology-preserving variant of the Visvalingam-Whyatt algorithm. Read more

impl<T> SimplifyVW<T> for MultiPolygon<T> where
    T: Float
[src]

Returns the simplified representation of a geometry, using the Visvalingam-Whyatt algorithm Read more

Auto Trait Implementations

impl<T> Send for MultiPolygon<T> where
    T: Send

impl<T> Sync for MultiPolygon<T> where
    T: Sync