You are here: Start » AVL.NET » Function Reference » Path » Path Features » 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, NullableValue<AvlNet.Point2D> outCenter, NullableValue<float> outLongSide, NullableValue<float> outShortSide, NullableValue<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.NullableValue<AvlNet.Point2D> | Center of the bounding parallelogram. Can be null to skip this parameter calculation. | |||
outLongSide | AvlNet.NullableValue<float> | Length of the bounding parallelogram long side. Can be null to skip this parameter calculation. | |||
outShortSide | AvlNet.NullableValue<float> | Length of the bounding parallelogram short side. Can be null to skip this parameter calculation. | |||
outAngle | AvlNet.NullableValue<float> | Angle of the bounding parallelogram. Can be null to skip this parameter calculation. |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty path on input in PathBoundingParallelogram. |
Function Overrides
- PathBoundingParallelogram(Path, BoundingRectangleFeature, Path)
- PathBoundingParallelogram(Path, BoundingRectangleFeature, Path, Point2D, Single, Single, Single)