You are here: Start » AVL.NET » AVL.PointsDiameter Method

AVL.PointsDiameter Method

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void PointsDiameter(
	AvlNet.Point2D[] inPoints,
	out AvlNet.Segment2D outDiameter,
	out float outDiameterLength
)

Parameters

Name Type Range Default Description
inPointsAvlNet.Point2DInput array of points.
outDiameterAvlNet.Segment2DLongest segment found
outDiameterLengthfloatLength of longest segment found

Errors

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

See also