Struct geo::MultiPoint [] [src]

pub struct MultiPoint<T>(pub Vec<Point<T>>)
where
    T: Float
;

A collection of Points

Iterating over a MultiPoint yields the Points inside.

use geo::{MultiPoint, Point};
let points: MultiPoint<_> = vec![(0., 0.), (1., 2.)].into();
for point in points {
    println!("Point x = {}, y = {}", point.x(), point.y());
}

Trait Implementations

impl<T: PartialEq> PartialEq for MultiPoint<T> where
    T: Float
[src]

[src]

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

[src]

This method tests for !=.

impl<T: Clone> Clone for MultiPoint<T> where
    T: Float
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for MultiPoint<T> where
    T: Float
[src]

[src]

Formats the value using the given formatter.

impl<T: Float, IP: Into<Point<T>>> From<IP> for MultiPoint<T>
[src]

[src]

Convert a single Point (or something which can be converted to a Point) into a one-member MultiPoint

impl<T: Float, IP: Into<Point<T>>> From<Vec<IP>> for MultiPoint<T>
[src]

[src]

Convert a Vec of Points (or Vec of things which can be converted to a Point) into a MultiPoint.

impl<T: Float, IP: Into<Point<T>>> FromIterator<IP> for MultiPoint<T>
[src]

[src]

Collect the results of a Point iterator into a MultiPoint

impl<T: Float> IntoIterator for MultiPoint<T>
[src]

Iterate over the Points in this MultiPoint.

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

impl<T> Distance<T, Point<T>> for MultiPoint<T> where
    T: Float
[src]

[src]

Minimum distance from a MultiPoint to a Point

impl<T> BoundingBox<T> for MultiPoint<T> where
    T: Float
[src]

[src]

Return the BoundingBox for a MultiPoint

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

[src]

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

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

[src]

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

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

[src]

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

impl<T: Float, NT: Float> MapCoords<T, NT> for MultiPoint<T>
[src]

[src]

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

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

[src]

Find the closest point between self and p.

impl<'a, T> FromPostgis<&'a T> for MultiPoint<f64> where
    T: MultiPoint<'a>, 
[src]

[src]

impl ToPostgis<MultiPoint> for MultiPoint<f64>
[src]

[src]

Converts this geometry to a PostGIS type, using the supplied SRID.

[src]

Converts this WGS84 geometry to a PostGIS type.