Back to Aurora Vision Library website

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

PointsBoundingBox


Header: AVL.h
Namespace: avl
Module: FoundationLite

Computes the smallest box containing an array of points.

Syntax

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

Parameters

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

Examples

The resulting outBoundingBox drawn with the input points.

Errors

List of possible exceptions:

Error type Description
DomainError Empty array on input in PointsBoundingBox.