Constructor GeoPolygonArc2
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GeoPolygonArc2(IEnumerable<GeoPoint2>)
Initializes a loop of straight edges.
public GeoPolygonArc2(IEnumerable<GeoPoint2> vertices)
Parameters
verticesIEnumerable<GeoPoint2>The vertices, in order; at least three distinct ones.
Exceptions
- ArgumentNullException
Thrown when the vertices are null.
- ArgumentException
Thrown when fewer than three distinct vertices are given.
GeoPolygonArc2(IEnumerable<GeoPoint2>, IEnumerable<double>)
Initializes a loop whose edges may be arcs.
public GeoPolygonArc2(IEnumerable<GeoPoint2> vertices, IEnumerable<double> bulges)
Parameters
verticesIEnumerable<GeoPoint2>The vertices, in order; at least three distinct ones.
bulgesIEnumerable<double>The bulge of the edge leaving each vertex; null or short means the rest are straight.
Exceptions
- ArgumentNullException
Thrown when the vertices are null.
- ArgumentException
Thrown when fewer than three distinct vertices are given.
GeoPolygonArc2(GeoPolygon2)
Initializes a loop from a straight polygon, with no bulges.
public GeoPolygonArc2(GeoPolygon2 polygon)
Parameters
polygonGeoPolygon2The straight polygon to widen.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.