Table of Contents

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

ellipse GeoEllipse2

The ellipse.

spacing double

The 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.