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