Table of Contents

Method FromCircle

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

FromCircle(GeoCircle2)

Creates the ellipse that is a circle: both radii the circle's, the major axis along X, so that its eccentric angle is the circle's angle.

public static GeoEllipse2 FromCircle(GeoCircle2 circle)

Parameters

circle GeoCircle2

The circle.

Returns

GeoEllipse2

The ellipse drawing the same circle.

Remarks

A circle can be stretched into an ellipse this way: a circle of radius 100 made an ellipse and transformed by a scaling of 3 along X is the ellipse 300 by 100, which TransformBy(GeoTransform2) refuses.

Exceptions

ArgumentOutOfRangeException

Thrown when the circle has no radius.