Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 2D Features » PointsBoundingBox

PointsBoundingBox


Computes the smallest box containing an array of points.

Header:AVL.h

Syntax

C++
C#
 
void avl::PointsBoundingBox
(
	const atl::Array<avl::Point2D>& inPoints,
	avl::Box& outBoundingBox
)

Parameters

Name Type Default Description
inPoints const Array<Point2D>&
outBoundingBox Box&

Examples

The resulting outBoundingBox drawn with the input points.

Errors

Error type Description
DomainError Empty array on input in PointsBoundingBox.