Click or drag to resize

MathHelperFindMinimumAreaBoundingRectangle Method

Finds the minimum area bounding rectangle for a given collection of entities.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public static List<Vector2> FindMinimumAreaBoundingRectangle(
	List<EntityObject> Entities,
	double Precision = 1,
	bool RotateEntities = true
)

Parameters

Entities
Type: System.Collections.GenericListEntityObject
The collection of entities to calculate the bounding rectangle for.
Precision (Optional)
Type: SystemDouble
The precision of the calculation. Default is 1.
RotateEntities (Optional)
Type: SystemBoolean
Indicates whether entities should be rotated to find the minimum area. Default is true.

Return Value

Type: ListVector2
A list of Vector2 representing the corners of the minimum area bounding rectangle.
See Also