Table of Contents

Method ToPolygonBySpacing

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

ToPolygonBySpacing(GeoEllipse2, double)

Approximates the rim of an ellipse as a polygon whose corners are evenly spread along it, no two further apart along the rim than a spacing.

public static GeoPolygon2 ToPolygonBySpacing(GeoEllipse2 ellipse, double spacing)

Parameters

ellipse GeoEllipse2

The ellipse.

spacing double

The largest length allowed along the rim between two corners.

Returns

GeoPolygon2

A polygon inscribed in the ellipse, counter-clockwise from the end of the major axis.

Exceptions

ArgumentOutOfRangeException

Thrown when the spacing is not a positive number.