Method ToPolylineBySpacing
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
ToPolylineBySpacing(GeoEllipse2, double)
Approximates the rim of an ellipse as a chain whose points are evenly spread along it, no two further apart along the rim than a spacing, its first point repeated at the end.
public static GeoPolyline2 ToPolylineBySpacing(GeoEllipse2 ellipse, double spacing)
Parameters
ellipseGeoEllipse2The ellipse.
spacingdoubleThe largest length allowed along the rim between two points.
Returns
- GeoPolyline2
The corners of ToPolygonBySpacing(GeoEllipse2, double), the first repeated at the end.
Exceptions
- ArgumentOutOfRangeException
Thrown when the spacing is not a positive number.