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

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
inPointsSystem.Collections.Generic.IList<AvlNet.Point2D>
outMinDiameterAvlNet.Segment2D
outMinDiameterLengthfloat
outMaxDiameterAvlNet.Segment2D
outMaxDiameterLengthfloat

Errors

List of possible exceptions:

Error type Description
DomainError Empty point array on input in PointsCaliperDiameter.

Function Overrides

See also