You are here: Start » AVL.NET » 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 ( AvlNet.Point2D[] inPoints, out AvlNet.Segment2D outDiameter, out float outDiameterLength )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoints | AvlNet.Point2D[] | Input array of points. | ||
![]() | outDiameter | AvlNet.Segment2D | Longest segment found | ||
![]() | outDiameterLength | float | Length of longest segment found |
Examples
![](../img/filters/PointsDiameter.png)
PointsDiameter performed on an array of input points. The orange line is the result.
Errors
Error type | Description |
---|---|
DomainError | Empty array of points on input in PointsDiameter. |