You are here: Start » AVL.NET » Invoke.PointsBoundingRectangle_OrNil
Computes the smallest rectangle containing an array of points; returns NIL when the array is empty.
| Namespace: | Avl | 
|---|---|
| Assembly: | AvlNet.dll | 
Syntax
C++
C#
public static void PointsBoundingRectangle_OrNil ( List<Avl.Point2D> inPoints, Avl.BoundingRectangleFeature inBoundingRectangleFeature, float inReferenceAngle, Avl.RectangleOrientation inRectangleOrientation, Conditional<Avl.Rectangle2D> outBoundingRectangle, Conditional<Avl.Point2D> outCenter, Conditional<float> outLongSide, Conditional<float> outShortSide )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]()  | inPoints | System.Collections.Generic.List<Avl.Point2D> | Input array of points. | ||
![]()  | inBoundingRectangleFeature | Avl.BoundingRectangleFeature | MinimalArea | Determines what kind of bounding rectangle will be computed. Default value: MinimalArea. | |
![]()  | inReferenceAngle | float | 0.0f | The middle angle of the valid range of the output rectangle's angle. Default value: 0.0f. | |
![]()  | inRectangleOrientation | Avl.RectangleOrientation | Horizontal | Orientation of the output rectangle. Default value: Horizontal. | |
![]()  | outBoundingRectangle | Atl.Conditional<Avl.Rectangle2D> | Smallest bounding rectangle of the input points. | ||
![]()  | outCenter | Atl.Conditional<Avl.Point2D> | Center of the bounding rectangle. | ||
![]()  | outLongSide | Atl.Conditional<float> | Length of the bounding rectangle long side. | ||
![]()  | outShortSide | Atl.Conditional<float> | Length of the bounding rectangle short side. | 


