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
pointsIEnumerable<GeoPoint2>hullGeoPolygon2
Returns
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
pointsIEnumerable<GeoPoint2>The points.
hullGeoPolygon2The hull, counter-clockwise; null when the method returns false.
toleranceToleranceThe 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.