You are here: Start » AVL.NET » Invoke.PathBoundingRectangle
Computes the smallest rectangle containing a path.
Namespace: | Avl |
---|---|
Assembly: | AvlNet.dll |
Syntax
C++
C#
public static void PathBoundingRectangle ( Avl.Path inPath, Avl.BoundingRectangleFeature inBoundingRectangleFeature, float inReferenceAngle, Avl.RectangleOrientation inRectangleOrientation, out Avl.Rectangle2D outBoundingRectangle, Optional<Avl.Point2D> outCenter, Optional<float> outLongSide, Optional<float> outShortSide )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPath | Avl.Path | Input path. | ||
![]() | 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 | Avl.Rectangle2D | The smallest bounding rectangle of the input path. | ||
![]() | outCenter | Atl.Optional<Avl.Point2D> | Center of the bounding rectangle. | ||
![]() | outLongSide | Atl.Optional<float> | Length of the bounding rectangle long side. | ||
![]() | outShortSide | Atl.Optional<float> | Length of the bounding rectangle short side. |