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
pointsIEnumerable<GeoPoint2>
Returns
Of(IEnumerable<GeoPoint2>, Tolerance)
Gets the convex hull of some points, within a tolerance.
public static GeoPolygon2 Of(IEnumerable<GeoPoint2> points, Tolerance tolerance)
Parameters
pointsIEnumerable<GeoPoint2>The points.
toleranceToleranceThe 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.