Back to FabImage Library Lite website
You are here: Start » Geometry 2D Features » PointsBoundingRectangle_FixedAngle

PointsBoundingRectangle_FixedAngle
Computes the smallest rectangle with the given orientation angle containing an array of points.
Syntax
void fil::PointsBoundingRectangle_FixedAngle ( const ftl::Array<fil::Point2D>& inPoints, float inAngle, fil::Rectangle2D& outBoundingRectangle, ftl::Optional<fil::Point2D&> outCenter = ftl::NIL, ftl::Optional<float&> outLongSide = ftl::NIL, ftl::Optional<float&> outShortSide = ftl::NIL )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPoints | const Array<Point2D>& | Input array of points | |
![]() |
inAngle | float | Expected angle of the resulting rectangle | |
![]() |
outBoundingRectangle | Rectangle2D& | Smallest bounding rectangle of the input points | |
![]() |
outCenter | Optional<Point2D&> | NIL | Center of the bounding rectangle |
![]() |
outLongSide | Optional<float&> | NIL | Length of the bounding rectangle long side |
![]() |
outShortSide | Optional<float&> | NIL | Length of the bounding rectangle short side |
Errors
Error type | Description |
---|---|
DomainError | Empty array on input in PointsBoundingRectangle_FixedAngle. |