You are here: Start » AVL.NET » AVL.PathBoundingParallelogram
Computes the smallest parallelogram containing a path.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void PathBoundingParallelogram ( AvlNet.Path inPath, 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 | |
---|---|---|---|---|---|
inPath | AvlNet.Path | Input path. | |||
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 | Empty path on input in PathBoundingParallelogram. |