You are here: Start » AVL.NET » AVL.PointsCaliperDiameter
Computes the longest and the shortest width of the input points measured as distance between parallel lines containing all of them.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void PointsCaliperDiameter ( IList<AvlNet.Point2D> inPoints, out AvlNet.Segment2D outMinDiameter, out float outMinDiameterLength, out AvlNet.Segment2D outMaxDiameter, out float outMaxDiameterLength )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoints | System.Collections.Generic.IList<AvlNet.Point2D> | ||||
outMinDiameter | AvlNet.Segment2D | ||||
outMinDiameterLength | float | ||||
outMaxDiameter | AvlNet.Segment2D | ||||
outMaxDiameterLength | float |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty point array on input in PointsCaliperDiameter. |