Table of Contents

Method ProjectToEllipse2

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

ProjectToEllipse2(GeoCoordinateSystem3, GeoEllipse3)

Lays an ellipse in space out in a frame, projecting it square onto the plane of that frame.

public static GeoEllipse2 ProjectToEllipse2(GeoCoordinateSystem3 frame, GeoEllipse3 ellipse)

Parameters

frame GeoCoordinateSystem3

The frame to lay it out in.

ellipse GeoEllipse3

The ellipse in space.

Returns

GeoEllipse2

The ellipse in the plane of the frame: a circle of radius 300 tilted 60° from the frame's plane is an ellipse 300 by 150 there. One lying in the plane comes back as it is, its angle running counter-clockwise when its normal runs along the frame's Z axis.

Remarks

The ellipse is seen square onto the plane as ProjectToPlane(GeoEllipse3, GeoPlane3) sees it, then read in the frame's coordinates.

Exceptions

InvalidOperationException

Thrown when the ellipse stands square to the plane, where it would flatten into a segment rather than an ellipse.

ProjectToEllipse2(GeoCoordinateSystem3, GeoCircle3)

Lays a circle in space out in a frame, projecting it square onto the plane of that frame: an ellipse, or a circle where it lies parallel to the plane.

public static GeoEllipse2 ProjectToEllipse2(GeoCoordinateSystem3 frame, GeoCircle3 circle)

Parameters

frame GeoCoordinateSystem3

The frame to lay it out in.

circle GeoCircle3

The circle in space.

Returns

GeoEllipse2

The ellipse in the plane of the frame: a circle of radius 300 tilted 60° from the frame's plane is an ellipse 300 by 150 there.

Exceptions

InvalidOperationException

Thrown when the circle stands square to the plane, where it would flatten into a segment rather than an ellipse.