[−][src]Trait geo::algorithm::extremes::ExtremePoints
Required methods
fn extreme_points(&self) -> ExtremePoint<T>
Find the extreme x
and y
Point
s of a Geometry
This trait is available to any struct implementing both ConvexHull
amd ExtremeIndices
Examples
use geo::extremes::ExtremePoints; use geo::{point, polygon}; // a diamond shape let polygon = polygon![ (x: 1.0, y: 0.0), (x: 2.0, y: 1.0), (x: 1.0, y: 2.0), (x: 0.0, y: 1.0), (x: 1.0, y: 0.0), ]; let extremes = polygon.extreme_points(); assert_eq!(extremes.xmin, point!(x: 0., y: 1.));
Implementors
impl<T, G> ExtremePoints<T> for G where
T: Float + Signed,
G: ConvexHull<T> + ExtremeIndices<T>,
[src]
T: Float + Signed,
G: ConvexHull<T> + ExtremeIndices<T>,