Back to Adaptive Vision Library website
You are here: Start » Function Reference » Path Features » PathBoundingRectangle_OrNil
PathBoundingRectangle_OrNil
Computes the smallest rectangle containing a path; returns NIL when the path is empty.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::PathBoundingRectangle_OrNil ( const avl::Path& inPath, avl::BoundingRectangleFeature::Type inBoundingRectangleFeature, float inReferenceAngle, avl::RectangleOrientation::Type inRectangleOrientation, atl::Conditional<avl::Rectangle2D>& outBoundingRectangle, atl::Conditional<avl::Point2D>& outCenter, atl::Conditional<float>& outLongSide, atl::Conditional<float>& outShortSide )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inPath | const Path& | Input path | ||
inBoundingRectangleFeature | BoundingRectangleFeature::Type | MinimalArea | Determines what kind of bounding rectangle will be computed | |
inReferenceAngle | float | 0.0f | The middle angle of the valid range of the output rectangle's angle | |
inRectangleOrientation | RectangleOrientation::Type | Horizontal | Orientation of the output rectangle | |
outBoundingRectangle | Conditional<Rectangle2D>& | Smallest bounding rectangle of the input path | ||
outCenter | Conditional<Point2D>& | Center of the bounding rectangle | ||
outLongSide | Conditional<float>& | Length of the bounding rectangle long side | ||
outShortSide | Conditional<float>& | Length of the bounding rectangle short side |