Table of Contents

Constructor GeoPolylineArc2

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GeoPolylineArc2(IEnumerable<GeoPoint2>)

Initializes a chain of straight pieces.

public GeoPolylineArc2(IEnumerable<GeoPoint2> vertices)

Parameters

vertices IEnumerable<GeoPoint2>

The vertices, in order; at least two, and no two neighbours in the same place.

Exceptions

ArgumentNullException

Thrown when the vertices are null.

ArgumentException

Thrown when fewer than two distinct vertices are given.

GeoPolylineArc2(IEnumerable<GeoPoint2>, IEnumerable<double>)

Initializes a chain whose pieces may be arcs.

public GeoPolylineArc2(IEnumerable<GeoPoint2> vertices, IEnumerable<double> bulges)

Parameters

vertices IEnumerable<GeoPoint2>

The vertices, in order; at least two, and no two neighbours in the same place.

bulges IEnumerable<double>

The bulge of the edge leaving each vertex; null or short means the rest are straight, and anything past the last edge is ignored.

Exceptions

ArgumentNullException

Thrown when the vertices are null.

ArgumentException

Thrown when fewer than two distinct vertices are given.

GeoPolylineArc2(IEnumerable<GeoEdge2>)

Initializes a chain from edges that run end to end.

public GeoPolylineArc2(IEnumerable<GeoEdge2> edges)

Parameters

edges IEnumerable<GeoEdge2>

The edges, each starting where the one before it ended.

Exceptions

ArgumentNullException

Thrown when the edges are null.

ArgumentException

Thrown when no edges are given, or one does not start where the one before it ended.

GeoPolylineArc2(GeoPolyline2)

Initializes a chain from a straight one, with no bulges.

public GeoPolylineArc2(GeoPolyline2 polyline)

Parameters

polyline GeoPolyline2

The straight chain to widen.

Remarks

Widening loses nothing: every edge simply carries a bulge of zero. It is Flatten() going the other way that approximates.

Exceptions

ArgumentNullException

Thrown when the chain is null.