RectGrid.convex_hull¶
- RectGrid.convex_hull()[source]¶
Return the smallest
IntervalProd
containing this grid.The convex hull of a set is the union of all line segments between points in the set. For a rectilinear grid, it is the interval product given by the extremal coordinates.
- Returns:
- convex_hull
IntervalProd
Interval product defined by the minimum and maximum points of the grid.
- convex_hull
Examples
>>> g = RectGrid([-1, 0, 3], [2, 4], [5], [2, 4, 7]) >>> g.convex_hull() IntervalProd([-1., 2., 5., 2.], [ 3., 4., 5., 7.])