Function minimum_area_rectangle

Source
pub fn minimum_area_rectangle(
    points: &[Point2],
) -> Result<MinimumRectangle, RectangleError>
Expand description

The minimum-area rectangle enclosing points.

ยงErrors

RectangleError::Empty for no points, RectangleError::NonFinite for a coordinate that is not finite.