Method ProjectToPlane
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
ProjectToPlane(GeoEllipse3, GeoPlane3)
Gets an ellipse in space as it is seen square onto a plane: every point of it projected along the plane's normal.
public static GeoEllipse3 ProjectToPlane(GeoEllipse3 ellipse, GeoPlane3 plane)
Parameters
ellipseGeoEllipse3The ellipse.
planeGeoPlane3The plane to project onto.
Returns
- GeoEllipse3
The ellipse in that plane, its normal the plane's whichever way the ellipse faced.
Remarks
A circle of radius 300 tilted 60° from the plan is, in the plan, an ellipse 300 by 150, its major axis along the line the tilt turns about. The projection is a transformation of the ellipse's plane, so the arithmetic is that of TransformBy(GeoEllipse3, GeoTransform3): a circle parallel to the plane stays a circle, its angle starting where the circle's does.
Exceptions
- InvalidOperationException
Thrown when the ellipse stands square to the plane, where it would flatten into a segment rather than an ellipse: when the projections of its two semi-axes span no more than 1E-12 of the area the semi-axes span, so that it leans less than 1E-12 of a radian off square. One leaning more than that is given, however thin.
ProjectToPlane(GeoCircle3, GeoPlane3)
Gets a circle in space as it is seen square onto a plane: an ellipse, or a circle where it lies parallel to the plane.
public static GeoEllipse3 ProjectToPlane(GeoCircle3 circle, GeoPlane3 plane)
Parameters
circleGeoCircle3The circle.
planeGeoPlane3The plane to project onto.
Returns
- GeoEllipse3
The ellipse in that plane, its normal the plane's; a circle's angle starts where the circle's does.
Remarks
The circle is read as FromCircle(GeoCircle3) makes it an ellipse: a circle of radius 300 tilted 60° from the plan is, in the plan, an ellipse 300 by 150.
Exceptions
- InvalidOperationException
Thrown when the circle stands square to the plane, where it would flatten into a segment rather than an ellipse.