Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Features » PointsBoundingRectangle_OrNil
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Computes the smallest rectangle containing an array of points; returns NIL when the array is empty.
Syntax
C++
C#
void fil::PointsBoundingRectangle_OrNil ( const ftl::Array<fil::Point2D>& inPoints, fil::BoundingRectangleFeature::Type inBoundingRectangleFeature, float inReferenceAngle, fil::RectangleOrientation::Type inRectangleOrientation, ftl::Conditional<fil::Rectangle2D>& outBoundingRectangle, ftl::Conditional<fil::Point2D>& outCenter, ftl::Conditional<float>& outLongSide, ftl::Conditional<float>& outShortSide )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPoints | const Array<Point2D>& | Input array of points | |
![]() |
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 points | |
![]() |
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 |