Method ToPolyline
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
ToPolyline(GeoEllipse2, int)
Approximates the rim of an ellipse as a chain with a given number of pieces, its points evenly spread in the eccentric angle and its first point repeated at the end.
public static GeoPolyline2 ToPolyline(GeoEllipse2 ellipse, int segmentCount)
Parameters
ellipseGeoEllipse2The ellipse.
segmentCountintHow many pieces; at least three.
Returns
- GeoPolyline2
The corners of ToPolygon(GeoEllipse2, int), the first repeated at the end.
Exceptions
- ArgumentOutOfRangeException
Thrown when fewer than three pieces are asked for.