Skip to main content

point_set_width

Function point_set_width 

Source
pub fn point_set_width(points: &ArrayView2<'_, f64>) -> SpatialResult<f64>
Expand description

Compute the width of a point set (minimum distance across)

The width is the minimum distance between two parallel lines that enclose all points.

§Arguments

  • points - Input points (n x 2)

§Returns

  • SpatialResult<f64> - The width of the point set