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
)
Public Shared Function FindMinimumAreaBoundingRectangle (
Entities As List(Of EntityObject),
Optional Precision As Double = 1,
Optional RotateEntities As Boolean = true
) As List(Of Vector2)
public:
static List<Vector2>^ FindMinimumAreaBoundingRectangle(
List<EntityObject^>^ Entities,
double Precision = 1,
bool RotateEntities = true
)
static member FindMinimumAreaBoundingRectangle :
Entities : List<EntityObject> *
?Precision : float *
?RotateEntities : bool
(* Defaults:
let _Precision = defaultArg Precision 1
let _RotateEntities = defaultArg RotateEntities true
*)
-> List<Vector2>
STATIC METHOD FindMinimumAreaBoundingRectangle(
Entities AS List<EntityObject>,
Precision AS REAL8 := 1,
RotateEntities AS LOGIC := TRUE
) AS List<Vector2>
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:
ListVector2A list of
Vector2 representing the corners of the minimum area bounding rectangle.
See Also