Back to Adaptive Vision Library website
 
                
                    
 
		
	You are here: Start » Function Reference » Geometry 2D Features » CircleBoundingRectangle
Computes the smallest rectangle containing a circle.
Syntax
C++
C#
void avl::CircleBoundingRectangle ( const avl::Circle2D& inCircle, atl::Optional<float> inAngle, 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 | |
|---|---|---|---|---|
|  | inCircle | const Circle2D& | Input circle | |
|  | inAngle | Optional<float> | NIL | Expected angle of the resulting rectangle | 
|  | outBoundingRectangle | Rectangle2D& | Smallest bounding rectangle of the input circle | |
|  | 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 | 
Examples
 
CircleBoundingRectangle performed on a sample circle.

 
 
