Back to Aurora Vision Library Lite website
You are here: Start » Geometry 2D » Geometry 2D Features » PointsBoundingRectangle_FixedAngle_OrNil
PointsBoundingRectangle_FixedAngle_OrNil
Header: | AVL.h |
---|---|
Namespace: | avl |
Computes the smallest rectangle with the given orientation angle containing an array of points; returns NIL when the array is empty.
Syntax
void avl::PointsBoundingRectangle_FixedAngle_OrNil ( const atl::Array<avl::Point2D>& inPoints, float inAngle, atl::Conditional<avl::Rectangle2D>& outBoundingRectangle, atl::Conditional<avl::Point2D>& outCenter, atl::Conditional<float>& outLongSide, atl::Conditional<float>& outShortSide )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inPoints | const Array<Point2D>& | Input array of points | ||
inAngle | float | Expected angle of the resulting 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 |