Table of Contents

Method Of

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

Of(IEnumerable<GeoPoint2>)

Gets the convex hull of some points, using the default tolerance.

public static GeoPolygon2 Of(IEnumerable<GeoPoint2> points)

Parameters

points IEnumerable<GeoPoint2>

Returns

GeoPolygon2

Of(IEnumerable<GeoPoint2>, Tolerance)

Gets the convex hull of some points, within a tolerance.

public static GeoPolygon2 Of(IEnumerable<GeoPoint2> points, Tolerance tolerance)

Parameters

points IEnumerable<GeoPoint2>

The points.

tolerance Tolerance

The tolerance deciding whether a point lies on the line through two others.

Returns

GeoPolygon2

The hull, counter-clockwise, its corners taken from the points.

Exceptions

ArgumentNullException

Thrown when the points are null.

ArgumentException

Thrown when the points span no area: fewer than three, or all in one line.