MinimumEnclosure..::..BoundingRectangle Method

Finds the minimum bounding rectangle given a set of points. Either send any set of points OR the convex hull 2D.

Namespace:  TVGL
Assembly:  TessellationAndVoxelizationGeometryLibraryUniversal (in TessellationAndVoxelizationGeometryLibraryUniversal.dll)

Syntax


public static BoundingRectangle BoundingRectangle(
	IList<Point> points,
	bool pointsAreConvexHull
)
Public Shared Function BoundingRectangle ( _
	points As IList(Of Point), _
	pointsAreConvexHull As Boolean _
) As BoundingRectangle
public:
static BoundingRectangle^ BoundingRectangle(
	IList<Point^>^ points, 
	bool^ pointsAreConvexHull
)

Parameters

points
Type: IList<(Of <(<'Point>)>)>
The points.
pointsAreConvexHull
Type: Boolean
if set to true [points are convex hull].

Return Value

BoundingRectangle.