Table of Contents

Method FromCircle

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

FromCircle(GeoCircle3)

Creates the ellipse that is a circle in space: both radii the circle's, the normal the circle's, and the major axis where the circle's angle starts, so that the eccentric angle is the circle's angle.

public static GeoEllipse3 FromCircle(GeoCircle3 circle)

Parameters

circle GeoCircle3

The circle.

Returns

GeoEllipse3

The ellipse drawing the same circle, whose GetPointAtAngle(double) gives the circle's GetPointAtAngle(double).

Remarks

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

Exceptions

ArgumentOutOfRangeException

Thrown when the circle has no radius.