Constructor GeoPolyline3
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GeoPolyline3(IEnumerable<GeoPoint3>)
Initializes a new polyline from a sequence of vertices.
public GeoPolyline3(IEnumerable<GeoPoint3> vertices)
Parameters
verticesIEnumerable<GeoPoint3>The vertices, in order along the chain.
Remarks
Consecutive duplicates within tolerance are dropped, so no zero-length segment survives. Comparing exactly instead would let a pair of vertices a nanometre apart through and leave a segment with no usable direction in the middle of the chain.
Exceptions
- ArgumentNullException
Thrown when the sequence is null.
- ArgumentException
Thrown when fewer than two distinct vertices remain.
GeoPolyline3(params GeoPoint3[])
Initializes a new polyline directly from vertex arguments.
public GeoPolyline3(params GeoPoint3[] vertices)
Parameters
verticesGeoPoint3[]