Function calculate_polygon_extents

Source
pub fn calculate_polygon_extents<T, const N: usize>(
    polygon: &[Point<T, N>],
) -> Option<PolygonExtents<T, N>>
where T: Bounded + Copy + RealField,
Expand description

This function calculates the extents of the polygon, i.e., the minimum and maximum values for each coordinate dimension.

§Generics

  • T: one of f32 or f64.
  • N: a constant generic of type usize.

§Arguments

  • polygon: a slice of Point.

§Returns

See PolygonExtents