Back to Aurora Vision Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Features » PointsBoundingEllipse
PointsBoundingEllipse
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationBasic |
Computes the smallest ellipse containing an array of points if such ellipse exists.
Syntax
C++
C#
void avl::PointsBoundingEllipse ( const atl::Array<avl::Point2D>& inPoints, avl::Ellipse2D& outBoundingEllipse, atl::Array<avl::Point2D>& outBoundaryPoints )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inPoints | const Array<Point2D>& | |||
outBoundingEllipse | Ellipse2D& | |||
outBoundaryPoints | Array<Point2D>& |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty array on input in PointsBoundingEllipse. |
DomainError | Failed to find proper ellipse PointsBoundingEllipse. |