Back to Aurora Vision Library Lite website
You are here: Start » Geometry 2D » Geometry 2D Features » EllipseBoundingRectangle
EllipseBoundingRectangle
Header: | AVL.h |
---|---|
Namespace: | avl |
Computes the smallest rectangle containing an ellipse.
Syntax
void avl::EllipseBoundingRectangle ( const avl::Ellipse2D& inEllipse, avl::Rectangle2D& outBoundingRectangle, atl::Optional<avl::Point2D&> outCenter = atl::NIL, atl::Optional<float&> outLongSide = atl::NIL, atl::Optional<float&> outShortSide = atl::NIL )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inEllipse | const Ellipse2D& | |||
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 |
Optional Outputs
The computation of following outputs can be switched off by passing value atl::NIL
to these parameters: outCenter, outLongSide, outShortSide.
Read more about Optional Outputs.