pub struct Euclidean;Expand description
Operations on the Euclidean plane measure distance with the pythagorean formula - what you’d measure with a ruler.
If you have lon/lat points, use the Haversine, Geodesic, or other metric spaces -
Euclidean methods will give nonsense results.
If you wish to use Euclidean operations with lon/lat, the coordinates must first be transformed
using the Transform::transform / Transform::transform_crs_to_crs methods or their
immutable variants. Use of these requires the proj feature
Trait Implementations§
Source§impl<F: CoordFloat + FromPrimitive> Bearing<F> for Euclidean
impl<F: CoordFloat + FromPrimitive> Bearing<F> for Euclidean
Source§fn bearing(&self, origin: Point<F>, destination: Point<F>) -> F
fn bearing(&self, origin: Point<F>, destination: Point<F>) -> F
Returns the bearing from origin to destination in degrees along a straight line.
§Units
origin,destination: Points where x/y are cartesian coordinates- returns: degrees, measured clockwise from the positive Y-axis direction
- 0° = positive Y direction (typically North)
- 90° = positive X direction (typically East)
- 180° = negative Y direction (typically South)
- 270° = negative X direction (typically West)
§Examples
use geo::{Euclidean, Point, Bearing};
let origin = Point::new(0.0, 0.0);
let destination = Point::new(1.0, 1.0);
let bearing = Euclidean.bearing(origin, destination);
// NorthEast
assert_relative_eq!(bearing, 45.0, epsilon = 1.0e-2);Source§impl<F: CoordFloat + FromPrimitive> Destination<F> for Euclidean
impl<F: CoordFloat + FromPrimitive> Destination<F> for Euclidean
Source§fn destination(&self, origin: Point<F>, bearing: F, distance: F) -> Point<F>
fn destination(&self, origin: Point<F>, bearing: F, distance: F) -> Point<F>
Returns a new point having travelled the distance along a straight line
from the origin point with the given bearing.
§Units
bearing: degrees, where: North: 0°, East: 90°, South: 180°, West: 270°distance: meters- returns: Point where x/y are cartesian coordinates
§Examples
use geo::{Point, Destination, Euclidean};
// Determine the point 100 km NE of JFK airport.
let origin = Point::new(0.0, 0.0);
let northeast_bearing = 45.0;
let distance = 100.0;
let northeast_location = Euclidean.destination(origin, northeast_bearing, distance);
assert_relative_eq!(
Point::new(70.71, 70.71),
northeast_location,
epsilon = 1.0e-2
);Source§impl<F: GeoFloat> Distance<F, &Geometry<F>, &Geometry<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Geometry<F>, &Geometry<F>> for Euclidean
Source§fn distance(&self, origin: &Geometry<F>, destination: &Geometry<F>) -> F
fn distance(&self, origin: &Geometry<F>, destination: &Geometry<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Geometry<F>, &GeometryCollection<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Geometry<F>, &GeometryCollection<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Geometry<F>, b: &GeometryCollection<F>) -> F
fn distance(&self, a: &Geometry<F>, b: &GeometryCollection<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Geometry<F>, &Line<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Geometry<F>, &Line<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Geometry<F>, b: &Line<F>) -> F
fn distance(&self, a: &Geometry<F>, b: &Line<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Geometry<F>, &LineString<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Geometry<F>, &LineString<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Geometry<F>, b: &LineString<F>) -> F
fn distance(&self, a: &Geometry<F>, b: &LineString<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Geometry<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Geometry<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Geometry<F>, b: &MultiLineString<F>) -> F
fn distance(&self, a: &Geometry<F>, b: &MultiLineString<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Geometry<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Geometry<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Geometry<F>, b: &MultiPoint<F>) -> F
fn distance(&self, a: &Geometry<F>, b: &MultiPoint<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Geometry<F>, &MultiPolygon<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Geometry<F>, &MultiPolygon<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Geometry<F>, b: &MultiPolygon<F>) -> F
fn distance(&self, a: &Geometry<F>, b: &MultiPolygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Geometry<F>, &Point<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Geometry<F>, &Point<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Geometry<F>, b: &Point<F>) -> F
fn distance(&self, a: &Geometry<F>, b: &Point<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Geometry<F>, &Polygon<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Geometry<F>, &Polygon<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Geometry<F>, b: &Polygon<F>) -> F
fn distance(&self, a: &Geometry<F>, b: &Polygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Geometry<F>, &Rect<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Geometry<F>, &Rect<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Geometry<F>, b: &Rect<F>) -> F
fn distance(&self, a: &Geometry<F>, b: &Rect<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Geometry<F>, &Triangle<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Geometry<F>, &Triangle<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Geometry<F>, b: &Triangle<F>) -> F
fn distance(&self, a: &Geometry<F>, b: &Triangle<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &GeometryCollection<F>, &Geometry<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &GeometryCollection<F>, &Geometry<F>> for Euclidean
Source§fn distance(
&self,
origin: &GeometryCollection<F>,
destination: &Geometry<F>,
) -> F
fn distance( &self, origin: &GeometryCollection<F>, destination: &Geometry<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &GeometryCollection<F>, &GeometryCollection<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &GeometryCollection<F>, &GeometryCollection<F>> for Euclidean
Source§fn distance(
&self,
origin: &GeometryCollection<F>,
destination: &GeometryCollection<F>,
) -> F
fn distance( &self, origin: &GeometryCollection<F>, destination: &GeometryCollection<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &GeometryCollection<F>, &Line<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &GeometryCollection<F>, &Line<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &GeometryCollection<F>,
to_geometry: &Line<F>,
) -> F
fn distance( &self, iter_geometry: &GeometryCollection<F>, to_geometry: &Line<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &GeometryCollection<F>, &LineString<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &GeometryCollection<F>, &LineString<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &GeometryCollection<F>,
to_geometry: &LineString<F>,
) -> F
fn distance( &self, iter_geometry: &GeometryCollection<F>, to_geometry: &LineString<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &GeometryCollection<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &GeometryCollection<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &GeometryCollection<F>, b: &MultiLineString<F>) -> F
fn distance(&self, a: &GeometryCollection<F>, b: &MultiLineString<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &GeometryCollection<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &GeometryCollection<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &GeometryCollection<F>, b: &MultiPoint<F>) -> F
fn distance(&self, a: &GeometryCollection<F>, b: &MultiPoint<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &GeometryCollection<F>, &MultiPolygon<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &GeometryCollection<F>, &MultiPolygon<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &GeometryCollection<F>, b: &MultiPolygon<F>) -> F
fn distance(&self, a: &GeometryCollection<F>, b: &MultiPolygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &GeometryCollection<F>, &Point<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &GeometryCollection<F>, &Point<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &GeometryCollection<F>,
to_geometry: &Point<F>,
) -> F
fn distance( &self, iter_geometry: &GeometryCollection<F>, to_geometry: &Point<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &GeometryCollection<F>, &Polygon<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &GeometryCollection<F>, &Polygon<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &GeometryCollection<F>,
to_geometry: &Polygon<F>,
) -> F
fn distance( &self, iter_geometry: &GeometryCollection<F>, to_geometry: &Polygon<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &GeometryCollection<F>, &Rect<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &GeometryCollection<F>, &Rect<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &GeometryCollection<F>,
to_geometry: &Rect<F>,
) -> F
fn distance( &self, iter_geometry: &GeometryCollection<F>, to_geometry: &Rect<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &GeometryCollection<F>, &Triangle<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &GeometryCollection<F>, &Triangle<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &GeometryCollection<F>,
to_geometry: &Triangle<F>,
) -> F
fn distance( &self, iter_geometry: &GeometryCollection<F>, to_geometry: &Triangle<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Line<F>, &Geometry<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Line<F>, &Geometry<F>> for Euclidean
Source§fn distance(&self, origin: &Line<F>, destination: &Geometry<F>) -> F
fn distance(&self, origin: &Line<F>, destination: &Geometry<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Line<F>, &GeometryCollection<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Line<F>, &GeometryCollection<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Line<F>, b: &GeometryCollection<F>) -> F
fn distance(&self, a: &Line<F>, b: &GeometryCollection<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Line<F>, &Line<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Line<F>, &Line<F>> for Euclidean
Source§fn distance(&self, line_a: &Line<F>, line_b: &Line<F>) -> F
fn distance(&self, line_a: &Line<F>, line_b: &Line<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Line<F>, &LineString<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Line<F>, &LineString<F>> for Euclidean
Source§fn distance(&self, line: &Line<F>, line_string: &LineString<F>) -> F
fn distance(&self, line: &Line<F>, line_string: &LineString<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Line<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Line<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Line<F>, b: &MultiLineString<F>) -> F
fn distance(&self, a: &Line<F>, b: &MultiLineString<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Line<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Line<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Line<F>, b: &MultiPoint<F>) -> F
fn distance(&self, a: &Line<F>, b: &MultiPoint<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Line<F>, &MultiPolygon<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Line<F>, &MultiPolygon<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Line<F>, b: &MultiPolygon<F>) -> F
fn distance(&self, a: &Line<F>, b: &MultiPolygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Line<F>, &Point<F>> for Euclideanwhere
F: CoordFloat,
impl<F> Distance<F, &Line<F>, &Point<F>> for Euclideanwhere
F: CoordFloat,
Source§fn distance(&self, a: &Line<F>, b: &Point<F>) -> F
fn distance(&self, a: &Line<F>, b: &Point<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Line<F>, &Polygon<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Line<F>, &Polygon<F>> for Euclidean
Source§fn distance(&self, line: &Line<F>, polygon: &Polygon<F>) -> F
fn distance(&self, line: &Line<F>, polygon: &Polygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Line<F>, &Rect<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Line<F>, &Rect<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Line<F>, b: &Rect<F>) -> F
fn distance(&self, a: &Line<F>, b: &Rect<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Line<F>, &Triangle<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Line<F>, &Triangle<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Line<F>, b: &Triangle<F>) -> F
fn distance(&self, a: &Line<F>, b: &Triangle<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Line<F>, Coord<F>> for Euclideanwhere
F: CoordFloat,
impl<F> Distance<F, &Line<F>, Coord<F>> for Euclideanwhere
F: CoordFloat,
Source§fn distance(&self, a: &Line<F>, b: Coord<F>) -> F
fn distance(&self, a: &Line<F>, b: Coord<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &LineString<F>, &Geometry<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &LineString<F>, &Geometry<F>> for Euclidean
Source§fn distance(&self, origin: &LineString<F>, destination: &Geometry<F>) -> F
fn distance(&self, origin: &LineString<F>, destination: &Geometry<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &LineString<F>, &GeometryCollection<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &LineString<F>, &GeometryCollection<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &LineString<F>, b: &GeometryCollection<F>) -> F
fn distance(&self, a: &LineString<F>, b: &GeometryCollection<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &LineString<F>, &Line<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &LineString<F>, &Line<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &LineString<F>, b: &Line<F>) -> F
fn distance(&self, a: &LineString<F>, b: &Line<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &LineString<F>, &LineString<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &LineString<F>, &LineString<F>> for Euclidean
Source§fn distance(
&self,
line_string_a: &LineString<F>,
line_string_b: &LineString<F>,
) -> F
fn distance( &self, line_string_a: &LineString<F>, line_string_b: &LineString<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &LineString<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &LineString<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &LineString<F>, b: &MultiLineString<F>) -> F
fn distance(&self, a: &LineString<F>, b: &MultiLineString<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &LineString<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &LineString<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &LineString<F>, b: &MultiPoint<F>) -> F
fn distance(&self, a: &LineString<F>, b: &MultiPoint<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &LineString<F>, &MultiPolygon<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &LineString<F>, &MultiPolygon<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &LineString<F>, b: &MultiPolygon<F>) -> F
fn distance(&self, a: &LineString<F>, b: &MultiPolygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &LineString<F>, &Point<F>> for Euclideanwhere
F: CoordFloat,
impl<F> Distance<F, &LineString<F>, &Point<F>> for Euclideanwhere
F: CoordFloat,
Source§fn distance(&self, a: &LineString<F>, b: &Point<F>) -> F
fn distance(&self, a: &LineString<F>, b: &Point<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &LineString<F>, &Polygon<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &LineString<F>, &Polygon<F>> for Euclidean
Source§fn distance(&self, line_string: &LineString<F>, polygon: &Polygon<F>) -> F
fn distance(&self, line_string: &LineString<F>, polygon: &Polygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &LineString<F>, &Rect<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &LineString<F>, &Rect<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &LineString<F>, b: &Rect<F>) -> F
fn distance(&self, a: &LineString<F>, b: &Rect<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &LineString<F>, &Triangle<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &LineString<F>, &Triangle<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &LineString<F>, b: &Triangle<F>) -> F
fn distance(&self, a: &LineString<F>, b: &Triangle<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &Geometry<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &Geometry<F>> for Euclidean
Source§fn distance(&self, origin: &MultiLineString<F>, destination: &Geometry<F>) -> F
fn distance(&self, origin: &MultiLineString<F>, destination: &Geometry<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &GeometryCollection<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &GeometryCollection<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiLineString<F>,
to_geometry: &GeometryCollection<F>,
) -> F
fn distance( &self, iter_geometry: &MultiLineString<F>, to_geometry: &GeometryCollection<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &Line<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &Line<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiLineString<F>,
to_geometry: &Line<F>,
) -> F
fn distance( &self, iter_geometry: &MultiLineString<F>, to_geometry: &Line<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &LineString<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &LineString<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiLineString<F>,
to_geometry: &LineString<F>,
) -> F
fn distance( &self, iter_geometry: &MultiLineString<F>, to_geometry: &LineString<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &MultiLineString<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &MultiLineString<F>> for Euclidean
Source§fn distance(
&self,
origin: &MultiLineString<F>,
destination: &MultiLineString<F>,
) -> F
fn distance( &self, origin: &MultiLineString<F>, destination: &MultiLineString<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &MultiLineString<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &MultiLineString<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &MultiLineString<F>, b: &MultiPoint<F>) -> F
fn distance(&self, a: &MultiLineString<F>, b: &MultiPoint<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &MultiPolygon<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &MultiPolygon<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiLineString<F>,
to_geometry: &MultiPolygon<F>,
) -> F
fn distance( &self, iter_geometry: &MultiLineString<F>, to_geometry: &MultiPolygon<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &Point<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &Point<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiLineString<F>,
to_geometry: &Point<F>,
) -> F
fn distance( &self, iter_geometry: &MultiLineString<F>, to_geometry: &Point<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &Polygon<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &Polygon<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiLineString<F>,
to_geometry: &Polygon<F>,
) -> F
fn distance( &self, iter_geometry: &MultiLineString<F>, to_geometry: &Polygon<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &Rect<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &Rect<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiLineString<F>,
to_geometry: &Rect<F>,
) -> F
fn distance( &self, iter_geometry: &MultiLineString<F>, to_geometry: &Rect<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &Triangle<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiLineString<F>, &Triangle<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiLineString<F>,
to_geometry: &Triangle<F>,
) -> F
fn distance( &self, iter_geometry: &MultiLineString<F>, to_geometry: &Triangle<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &Geometry<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &Geometry<F>> for Euclidean
Source§fn distance(&self, origin: &MultiPoint<F>, destination: &Geometry<F>) -> F
fn distance(&self, origin: &MultiPoint<F>, destination: &Geometry<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &GeometryCollection<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &GeometryCollection<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiPoint<F>,
to_geometry: &GeometryCollection<F>,
) -> F
fn distance( &self, iter_geometry: &MultiPoint<F>, to_geometry: &GeometryCollection<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &Line<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &Line<F>> for Euclidean
Source§fn distance(&self, iter_geometry: &MultiPoint<F>, to_geometry: &Line<F>) -> F
fn distance(&self, iter_geometry: &MultiPoint<F>, to_geometry: &Line<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &LineString<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &LineString<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiPoint<F>,
to_geometry: &LineString<F>,
) -> F
fn distance( &self, iter_geometry: &MultiPoint<F>, to_geometry: &LineString<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &MultiLineString<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &MultiLineString<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiPoint<F>,
to_geometry: &MultiLineString<F>,
) -> F
fn distance( &self, iter_geometry: &MultiPoint<F>, to_geometry: &MultiLineString<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &MultiPoint<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &MultiPoint<F>> for Euclidean
Source§fn distance(&self, origin: &MultiPoint<F>, destination: &MultiPoint<F>) -> F
fn distance(&self, origin: &MultiPoint<F>, destination: &MultiPoint<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &MultiPolygon<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &MultiPolygon<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiPoint<F>,
to_geometry: &MultiPolygon<F>,
) -> F
fn distance( &self, iter_geometry: &MultiPoint<F>, to_geometry: &MultiPolygon<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &Point<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &Point<F>> for Euclidean
Source§fn distance(&self, iter_geometry: &MultiPoint<F>, to_geometry: &Point<F>) -> F
fn distance(&self, iter_geometry: &MultiPoint<F>, to_geometry: &Point<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &Polygon<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &Polygon<F>> for Euclidean
Source§fn distance(&self, iter_geometry: &MultiPoint<F>, to_geometry: &Polygon<F>) -> F
fn distance(&self, iter_geometry: &MultiPoint<F>, to_geometry: &Polygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &Rect<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &Rect<F>> for Euclidean
Source§fn distance(&self, iter_geometry: &MultiPoint<F>, to_geometry: &Rect<F>) -> F
fn distance(&self, iter_geometry: &MultiPoint<F>, to_geometry: &Rect<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &Triangle<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPoint<F>, &Triangle<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiPoint<F>,
to_geometry: &Triangle<F>,
) -> F
fn distance( &self, iter_geometry: &MultiPoint<F>, to_geometry: &Triangle<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &Geometry<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &Geometry<F>> for Euclidean
Source§fn distance(&self, origin: &MultiPolygon<F>, destination: &Geometry<F>) -> F
fn distance(&self, origin: &MultiPolygon<F>, destination: &Geometry<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &GeometryCollection<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &GeometryCollection<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiPolygon<F>,
to_geometry: &GeometryCollection<F>,
) -> F
fn distance( &self, iter_geometry: &MultiPolygon<F>, to_geometry: &GeometryCollection<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &Line<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &Line<F>> for Euclidean
Source§fn distance(&self, iter_geometry: &MultiPolygon<F>, to_geometry: &Line<F>) -> F
fn distance(&self, iter_geometry: &MultiPolygon<F>, to_geometry: &Line<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &LineString<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &LineString<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiPolygon<F>,
to_geometry: &LineString<F>,
) -> F
fn distance( &self, iter_geometry: &MultiPolygon<F>, to_geometry: &LineString<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &MultiPolygon<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &MultiPolygon<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &MultiPolygon<F>, b: &MultiLineString<F>) -> F
fn distance(&self, a: &MultiPolygon<F>, b: &MultiLineString<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &MultiPolygon<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &MultiPolygon<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &MultiPolygon<F>, b: &MultiPoint<F>) -> F
fn distance(&self, a: &MultiPolygon<F>, b: &MultiPoint<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &MultiPolygon<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &MultiPolygon<F>> for Euclidean
Source§fn distance(&self, origin: &MultiPolygon<F>, destination: &MultiPolygon<F>) -> F
fn distance(&self, origin: &MultiPolygon<F>, destination: &MultiPolygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &Point<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &Point<F>> for Euclidean
Source§fn distance(&self, iter_geometry: &MultiPolygon<F>, to_geometry: &Point<F>) -> F
fn distance(&self, iter_geometry: &MultiPolygon<F>, to_geometry: &Point<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &Polygon<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &Polygon<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiPolygon<F>,
to_geometry: &Polygon<F>,
) -> F
fn distance( &self, iter_geometry: &MultiPolygon<F>, to_geometry: &Polygon<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &Rect<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &Rect<F>> for Euclidean
Source§fn distance(&self, iter_geometry: &MultiPolygon<F>, to_geometry: &Rect<F>) -> F
fn distance(&self, iter_geometry: &MultiPolygon<F>, to_geometry: &Rect<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &Triangle<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &MultiPolygon<F>, &Triangle<F>> for Euclidean
Source§fn distance(
&self,
iter_geometry: &MultiPolygon<F>,
to_geometry: &Triangle<F>,
) -> F
fn distance( &self, iter_geometry: &MultiPolygon<F>, to_geometry: &Triangle<F>, ) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Point<F>, &Geometry<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Point<F>, &Geometry<F>> for Euclidean
Source§fn distance(&self, origin: &Point<F>, destination: &Geometry<F>) -> F
fn distance(&self, origin: &Point<F>, destination: &Geometry<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Point<F>, &GeometryCollection<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Point<F>, &GeometryCollection<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Point<F>, b: &GeometryCollection<F>) -> F
fn distance(&self, a: &Point<F>, b: &GeometryCollection<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: CoordFloat> Distance<F, &Point<F>, &Line<F>> for Euclidean
impl<F: CoordFloat> Distance<F, &Point<F>, &Line<F>> for Euclidean
Source§fn distance(&self, origin: &Point<F>, destination: &Line<F>) -> F
fn distance(&self, origin: &Point<F>, destination: &Line<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: CoordFloat> Distance<F, &Point<F>, &LineString<F>> for Euclidean
impl<F: CoordFloat> Distance<F, &Point<F>, &LineString<F>> for Euclidean
Source§fn distance(&self, origin: &Point<F>, destination: &LineString<F>) -> F
fn distance(&self, origin: &Point<F>, destination: &LineString<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Point<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Point<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Point<F>, b: &MultiLineString<F>) -> F
fn distance(&self, a: &Point<F>, b: &MultiLineString<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Point<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Point<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Point<F>, b: &MultiPoint<F>) -> F
fn distance(&self, a: &Point<F>, b: &MultiPoint<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Point<F>, &MultiPolygon<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Point<F>, &MultiPolygon<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Point<F>, b: &MultiPolygon<F>) -> F
fn distance(&self, a: &Point<F>, b: &MultiPolygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: CoordFloat> Distance<F, &Point<F>, &Point<F>> for Euclidean
impl<F: CoordFloat> Distance<F, &Point<F>, &Point<F>> for Euclidean
Source§fn distance(&self, origin: &Point<F>, destination: &Point<F>) -> F
fn distance(&self, origin: &Point<F>, destination: &Point<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Point<F>, &Polygon<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Point<F>, &Polygon<F>> for Euclidean
Source§fn distance(&self, point: &Point<F>, polygon: &Polygon<F>) -> F
fn distance(&self, point: &Point<F>, polygon: &Polygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Point<F>, &Rect<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Point<F>, &Rect<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Point<F>, b: &Rect<F>) -> F
fn distance(&self, a: &Point<F>, b: &Rect<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Point<F>, &Triangle<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Point<F>, &Triangle<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Point<F>, b: &Triangle<F>) -> F
fn distance(&self, a: &Point<F>, b: &Triangle<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Polygon<F>, &Geometry<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Polygon<F>, &Geometry<F>> for Euclidean
Source§fn distance(&self, origin: &Polygon<F>, destination: &Geometry<F>) -> F
fn distance(&self, origin: &Polygon<F>, destination: &Geometry<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Polygon<F>, &GeometryCollection<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Polygon<F>, &GeometryCollection<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Polygon<F>, b: &GeometryCollection<F>) -> F
fn distance(&self, a: &Polygon<F>, b: &GeometryCollection<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Polygon<F>, &Line<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Polygon<F>, &Line<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Polygon<F>, b: &Line<F>) -> F
fn distance(&self, a: &Polygon<F>, b: &Line<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Polygon<F>, &LineString<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Polygon<F>, &LineString<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Polygon<F>, b: &LineString<F>) -> F
fn distance(&self, a: &Polygon<F>, b: &LineString<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Polygon<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Polygon<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Polygon<F>, b: &MultiLineString<F>) -> F
fn distance(&self, a: &Polygon<F>, b: &MultiLineString<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Polygon<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Polygon<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Polygon<F>, b: &MultiPoint<F>) -> F
fn distance(&self, a: &Polygon<F>, b: &MultiPoint<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Polygon<F>, &MultiPolygon<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Polygon<F>, &MultiPolygon<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Polygon<F>, b: &MultiPolygon<F>) -> F
fn distance(&self, a: &Polygon<F>, b: &MultiPolygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Polygon<F>, &Point<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Polygon<F>, &Point<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Polygon<F>, b: &Point<F>) -> F
fn distance(&self, a: &Polygon<F>, b: &Point<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Polygon<F>, &Polygon<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Polygon<F>, &Polygon<F>> for Euclidean
Source§fn distance(&self, polygon_a: &Polygon<F>, polygon_b: &Polygon<F>) -> F
fn distance(&self, polygon_a: &Polygon<F>, polygon_b: &Polygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Polygon<F>, &Rect<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Polygon<F>, &Rect<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Polygon<F>, b: &Rect<F>) -> F
fn distance(&self, a: &Polygon<F>, b: &Rect<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Polygon<F>, &Triangle<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Polygon<F>, &Triangle<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Polygon<F>, b: &Triangle<F>) -> F
fn distance(&self, a: &Polygon<F>, b: &Triangle<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Rect<F>, &Geometry<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Rect<F>, &Geometry<F>> for Euclidean
Source§fn distance(&self, origin: &Rect<F>, destination: &Geometry<F>) -> F
fn distance(&self, origin: &Rect<F>, destination: &Geometry<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Rect<F>, &GeometryCollection<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Rect<F>, &GeometryCollection<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Rect<F>, b: &GeometryCollection<F>) -> F
fn distance(&self, a: &Rect<F>, b: &GeometryCollection<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Rect<F>, &Line<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Rect<F>, &Line<F>> for Euclidean
Source§fn distance(&self, polygonlike: &Rect<F>, geometry_b: &Line<F>) -> F
fn distance(&self, polygonlike: &Rect<F>, geometry_b: &Line<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Rect<F>, &LineString<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Rect<F>, &LineString<F>> for Euclidean
Source§fn distance(&self, polygonlike: &Rect<F>, geometry_b: &LineString<F>) -> F
fn distance(&self, polygonlike: &Rect<F>, geometry_b: &LineString<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Rect<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Rect<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Rect<F>, b: &MultiLineString<F>) -> F
fn distance(&self, a: &Rect<F>, b: &MultiLineString<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Rect<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Rect<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Rect<F>, b: &MultiPoint<F>) -> F
fn distance(&self, a: &Rect<F>, b: &MultiPoint<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Rect<F>, &MultiPolygon<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Rect<F>, &MultiPolygon<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Rect<F>, b: &MultiPolygon<F>) -> F
fn distance(&self, a: &Rect<F>, b: &MultiPolygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Rect<F>, &Point<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Rect<F>, &Point<F>> for Euclidean
Source§fn distance(&self, polygonlike: &Rect<F>, geometry_b: &Point<F>) -> F
fn distance(&self, polygonlike: &Rect<F>, geometry_b: &Point<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Rect<F>, &Polygon<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Rect<F>, &Polygon<F>> for Euclidean
Source§fn distance(&self, polygonlike: &Rect<F>, geometry_b: &Polygon<F>) -> F
fn distance(&self, polygonlike: &Rect<F>, geometry_b: &Polygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Rect<F>, &Rect<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Rect<F>, &Rect<F>> for Euclidean
Source§fn distance(&self, origin: &Rect<F>, destination: &Rect<F>) -> F
fn distance(&self, origin: &Rect<F>, destination: &Rect<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Rect<F>, &Triangle<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Rect<F>, &Triangle<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Rect<F>, b: &Triangle<F>) -> F
fn distance(&self, a: &Rect<F>, b: &Triangle<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Triangle<F>, &Geometry<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Triangle<F>, &Geometry<F>> for Euclidean
Source§fn distance(&self, origin: &Triangle<F>, destination: &Geometry<F>) -> F
fn distance(&self, origin: &Triangle<F>, destination: &Geometry<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Triangle<F>, &GeometryCollection<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Triangle<F>, &GeometryCollection<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Triangle<F>, b: &GeometryCollection<F>) -> F
fn distance(&self, a: &Triangle<F>, b: &GeometryCollection<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Triangle<F>, &Line<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Triangle<F>, &Line<F>> for Euclidean
Source§fn distance(&self, polygonlike: &Triangle<F>, geometry_b: &Line<F>) -> F
fn distance(&self, polygonlike: &Triangle<F>, geometry_b: &Line<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Triangle<F>, &LineString<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Triangle<F>, &LineString<F>> for Euclidean
Source§fn distance(&self, polygonlike: &Triangle<F>, geometry_b: &LineString<F>) -> F
fn distance(&self, polygonlike: &Triangle<F>, geometry_b: &LineString<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Triangle<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Triangle<F>, &MultiLineString<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Triangle<F>, b: &MultiLineString<F>) -> F
fn distance(&self, a: &Triangle<F>, b: &MultiLineString<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Triangle<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Triangle<F>, &MultiPoint<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Triangle<F>, b: &MultiPoint<F>) -> F
fn distance(&self, a: &Triangle<F>, b: &MultiPoint<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F> Distance<F, &Triangle<F>, &MultiPolygon<F>> for Euclideanwhere
F: GeoFloat,
impl<F> Distance<F, &Triangle<F>, &MultiPolygon<F>> for Euclideanwhere
F: GeoFloat,
Source§fn distance(&self, a: &Triangle<F>, b: &MultiPolygon<F>) -> F
fn distance(&self, a: &Triangle<F>, b: &MultiPolygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Triangle<F>, &Point<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Triangle<F>, &Point<F>> for Euclidean
Source§fn distance(&self, polygonlike: &Triangle<F>, geometry_b: &Point<F>) -> F
fn distance(&self, polygonlike: &Triangle<F>, geometry_b: &Point<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Triangle<F>, &Polygon<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Triangle<F>, &Polygon<F>> for Euclidean
Source§fn distance(&self, polygonlike: &Triangle<F>, geometry_b: &Polygon<F>) -> F
fn distance(&self, polygonlike: &Triangle<F>, geometry_b: &Polygon<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Triangle<F>, &Rect<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Triangle<F>, &Rect<F>> for Euclidean
Source§fn distance(&self, polygonlike: &Triangle<F>, geometry_b: &Rect<F>) -> F
fn distance(&self, polygonlike: &Triangle<F>, geometry_b: &Rect<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: GeoFloat> Distance<F, &Triangle<F>, &Triangle<F>> for Euclidean
impl<F: GeoFloat> Distance<F, &Triangle<F>, &Triangle<F>> for Euclidean
Source§fn distance(&self, origin: &Triangle<F>, destination: &Triangle<F>) -> F
fn distance(&self, origin: &Triangle<F>, destination: &Triangle<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: CoordFloat> Distance<F, Coord<F>, &Line<F>> for Euclidean
impl<F: CoordFloat> Distance<F, Coord<F>, &Line<F>> for Euclidean
Source§fn distance(&self, coord: Coord<F>, line: &Line<F>) -> F
fn distance(&self, coord: Coord<F>, line: &Line<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: CoordFloat> Distance<F, Coord<F>, Coord<F>> for Euclidean
impl<F: CoordFloat> Distance<F, Coord<F>, Coord<F>> for Euclidean
Source§fn distance(&self, origin: Coord<F>, destination: Coord<F>) -> F
fn distance(&self, origin: Coord<F>, destination: Coord<F>) -> F
Point to Point
is supported.
See specific implementations for details. Read moreSource§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: CoordFloat> Distance<F, Point<F>, Point<F>> for Euclidean
Calculate the Euclidean distance (a.k.a. pythagorean distance) between two Points
impl<F: CoordFloat> Distance<F, Point<F>, Point<F>> for Euclidean
Calculate the Euclidean distance (a.k.a. pythagorean distance) between two Points
Source§fn distance(&self, origin: Point<F>, destination: Point<F>) -> F
fn distance(&self, origin: Point<F>, destination: Point<F>) -> F
Calculate the Euclidean distance (a.k.a. pythagorean distance) between two Points
§Units
origin,destination: Point where the units of x/y represent non-angular units, e.g. meters or miles, not lon/lat. For lon/lat points, use theHaversineorGeodesicmetric spaces.- returns: distance in the same units as the
originanddestinationpoints
§Example
use geo::{Euclidean, Distance};
use geo::Point;
// web mercator
let new_york_city = Point::new(-8238310.24, 4942194.78);
// web mercator
let london = Point::new(-14226.63, 6678077.70);
let distance: f64 = Euclidean.distance(new_york_city, london);
assert_eq!(
8_405_286., // meters in web mercator
distance.round()
);Source§fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
fn distance_within(
&self,
origin: Origin,
destination: Destination,
distance: F,
) -> boolwhere
F: PartialOrd,
true if the minimum distance between origin and destination is less than
or equal to distance Read moreSource§impl<F: CoordFloat + FromPrimitive> InterpolatePoint<F> for Euclidean
Interpolate Point(s) along a line on the Euclidean plane.
impl<F: CoordFloat + FromPrimitive> InterpolatePoint<F> for Euclidean
Interpolate Point(s) along a line on the Euclidean plane.
Source§fn point_at_distance_between(
&self,
start: Point<F>,
end: Point<F>,
distance_from_start: F,
) -> Point<F>
fn point_at_distance_between( &self, start: Point<F>, end: Point<F>, distance_from_start: F, ) -> Point<F>
Returns the point at the given distance along the line between start and end.
§Units
-
distance: Measured in whatever units yourstartandendpoints use.distanceand yourstartandendpoints should have non-angular units, like meters or miles, not lon/lat. For lon/lat points, use theHaversineorGeodesicmetric spaces.
Source§fn point_at_ratio_between(
&self,
start: Point<F>,
end: Point<F>,
ratio_from_start: F,
) -> Point<F>
fn point_at_ratio_between( &self, start: Point<F>, end: Point<F>, ratio_from_start: F, ) -> Point<F>
Returns the point at the given ratio along the line between start and end.
§Units
-
distance: Measured in whatever units yourstartandendpoints use.distanceand yourstartandendpoints should have non-angular units, like meters or miles, not lon/lat. For lon/lat points, use theHaversineorGeodesicmetric spaces.
Source§fn points_along_line(
&self,
start: Point<F>,
end: Point<F>,
max_distance: F,
include_ends: bool,
) -> impl Iterator<Item = Point<F>>
fn points_along_line( &self, start: Point<F>, end: Point<F>, max_distance: F, include_ends: bool, ) -> impl Iterator<Item = Point<F>>
Interpolates Points along a line between start and end.
As many points as necessary will be added such that the distance between points
never exceeds max_distance. If the distance between start and end is less than
max_distance, no additional points will be included in the output.
include_ends: Should the start and end points be included in the output?
§Units
-
max_distance: Measured in whatever units yourstartandendpoints use.max_distanceand yourstartandendpoints should have non-angular units, like meters or miles, not lon/lat. For lon/lat points, use theHaversineorGeodesicmetric spaces.
Auto Trait Implementations§
impl Freeze for Euclidean
impl RefUnwindSafe for Euclidean
impl Send for Euclidean
impl Sync for Euclidean
impl Unpin for Euclidean
impl UnwindSafe for Euclidean
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<F, MetricSpace> Densify<F> for MetricSpace
impl<F, MetricSpace> Densify<F> for MetricSpace
fn densify<D>(
&self,
geometry: &D,
max_segment_length: F,
) -> <D as Densifiable<F>>::Outputwhere
D: Densifiable<F>,
Source§impl<F, MetricSpace> FrechetDistance<F> for MetricSpace
impl<F, MetricSpace> FrechetDistance<F> for MetricSpace
Source§fn frechet_distance(&self, ls_1: &LineString<F>, ls_2: &LineString<F>) -> F
fn frechet_distance(&self, ls_1: &LineString<F>, ls_2: &LineString<F>) -> F
Source§impl<F, MetricSpace> InterpolateLine<F> for MetricSpace
impl<F, MetricSpace> InterpolateLine<F> for MetricSpace
Source§fn point_at_ratio_from_start<L: InterpolatableLine<F>>(
&self,
line: &L,
ratio: F,
) -> L::Output
fn point_at_ratio_from_start<L: InterpolatableLine<F>>( &self, line: &L, ratio: F, ) -> L::Output
Source§fn point_at_ratio_from_end<L: InterpolatableLine<F>>(
&self,
line: &L,
ratio: F,
) -> L::Output
fn point_at_ratio_from_end<L: InterpolatableLine<F>>( &self, line: &L, ratio: F, ) -> L::Output
Source§fn point_at_distance_from_start<L: InterpolatableLine<F>>(
&self,
line: &L,
distance: F,
) -> L::Output
fn point_at_distance_from_start<L: InterpolatableLine<F>>( &self, line: &L, distance: F, ) -> L::Output
distance from the start of the line. Read moreSource§fn point_at_distance_from_end<L: InterpolatableLine<F>>(
&self,
line: &L,
distance: F,
) -> L::Output
fn point_at_distance_from_end<L: InterpolatableLine<F>>( &self, line: &L, distance: F, ) -> L::Output
distance from the end of the line. Read moreSource§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more