You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Features » AVL.PointsBoundingParallelogram
Computes the smallest parallelogram containing an array of points.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void PointsBoundingParallelogram ( IList<AvlNet.Point2D> inPoints, AvlNet.BoundingRectangleFeature inBoundingParallelogramFeature, AvlNet.Path outBoundingParallelogram, out AvlNet.Point2D outCenter, out float outLongSide, out float outShortSide, out float outAngle )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() | inPoints | System.Collections.Generic.IList<AvlNet.Point2D> | Input array of points. | ||
![]() | inBoundingParallelogramFeature | AvlNet.BoundingRectangleFeature | MinimalArea | Determines what kind of bounding parallelogram will be computed. Default value: MinimalArea. | |
![]() | outBoundingParallelogram | AvlNet.Path | Smallest bounding parallelogram of the input points. | ||
![]() | outCenter | AvlNet.Point2D | Center of the bounding parallelogram. | ||
![]() | outLongSide | float | Length of the bounding parallelogram long side. | ||
![]() | outShortSide | float | Length of the bounding parallelogram short side. | ||
![]() | outAngle | float | Angle of the bounding parallelogram. |
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | No points on input in PointsBoundingParallelogram. |
| DomainError | Unknown parallelogram feature in PointsBoundingParallelogram. |
Function Overrides
- PointsBoundingParallelogram(IList<Point2D>, BoundingRectangleFeature, Path)
- PointsBoundingParallelogram(IList<Point2D>, BoundingRectangleFeature, Path, NullableValue<Point2D>, NullableValue<Single>, NullableValue<Single>, NullableValue<Single>)


