Table of Contents

Method TryOf

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

TryOf(IEnumerable<GeoPoint2>, out GeoPolygon2)

Tries to get the convex hull of some points, using the default tolerance.

public static bool TryOf(IEnumerable<GeoPoint2> points, out GeoPolygon2 hull)

Parameters

points IEnumerable<GeoPoint2>
hull GeoPolygon2

Returns

bool

TryOf(IEnumerable<GeoPoint2>, out GeoPolygon2, Tolerance)

Tries to get the convex hull of some points, within a tolerance.

public static bool TryOf(IEnumerable<GeoPoint2> points, out GeoPolygon2 hull, Tolerance tolerance)

Parameters

points IEnumerable<GeoPoint2>

The points.

hull GeoPolygon2

The hull, counter-clockwise; null when the method returns false.

tolerance Tolerance

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

Returns

bool

false when the points span no area.

Exceptions

ArgumentNullException

Thrown when the points are null.