Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Features » PointsDiameter
Finds the longest segment connecting two points from a given array.
Syntax
C++
C#
void avl::PointsDiameter ( const atl::Array<avl::Point2D>& inPoints, atl::Optional<avl::Segment2D&> outDiameter = atl::NIL, atl::Optional<atl::real&> outDiameterLength = atl::NIL )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPoints | const Array<Point2D>& | Input array of points | |
![]() |
outDiameter | Optional<Segment2D&> | NIL | |
![]() |
outDiameterLength | Optional<real&> | NIL |
Errors
| Error type | Description |
|---|---|
| DomainError | Empty array of points on input in PointsDiameter. |


