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
frameGeoCoordinateSystem3The frame to lay it out in.
ellipseGeoEllipse3The 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
frameGeoCoordinateSystem3The frame to lay it out in.
circleGeoCircle3The 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.