Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Features » EllipseBoundingRectangle_FixedAngle
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Computes the smallest rectangle with the given orientation angle containing an ellipse.
Syntax
C++
C#
void fil::EllipseBoundingRectangle_FixedAngle ( const fil::Ellipse2D& inEllipse, 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 | |
---|---|---|---|---|
![]() |
inEllipse | const Ellipse2D& | ||
![]() |
inAngle | float | Expected angle of the resulting rectangle | |
![]() |
outBoundingRectangle | Rectangle2D& | Smallest bounding rectangle of the input ellipse | |
![]() |
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 |
Optional Outputs
The computation of following outputs can be switched off by passing value ftl::NIL
to these parameters: outCenter, outLongSide, outShortSide.
Read more about Optional Outputs.