You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Features » AVL.PointsDiameter

AVL.PointsDiameter

Finds the longest segment connecting two points from a given array.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void PointsDiameter
(
	IList<AvlNet.Point2D> inPoints,
	out AvlNet.Segment2D outDiameter,
	out float outDiameterLength
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<AvlNet.Point2D>Input array of points.
outDiameterAvlNet.Segment2DLongest segment found.
outDiameterLengthfloatLength of longest segment found.

Examples

PointsDiameter performed on an array of input points. The orange line is the result.

Errors

List of possible exceptions:

Error type Description
DomainError Empty array of points on input in PointsDiameter.

Function Overrides

See also