Back to FabImage Library website
You are here: Start » Function Reference » Region » Region Features » RegionBoundingRectangle_FixedAngle_OrNil

RegionBoundingRectangle_FixedAngle_OrNil
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationBasic |
Computes the smallest rectangle with the given orientation angle containing a region; returns NIL if the region is empty.
Syntax
C++
C#
void fil::RegionBoundingRectangle_FixedAngle_OrNil ( const fil::Region& inRegion, float inAngle, ftl::Conditional<fil::Rectangle2D>& outBoundingRectangle, ftl::Conditional<fil::Point2D>& outCenter, ftl::Conditional<float>& outLongSide, ftl::Conditional<float>& outShortSide )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | |
![]() |
inAngle | float | Expected angle of the resulting rectangle | |
![]() |
outBoundingRectangle | Conditional<Rectangle2D>& | Smallest bounding rectangle of the input region | |
![]() |
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 |