Method ProjectToArc2
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
ProjectToArc2(GeoCoordinateSystem3)
Lays this arc out in the plane of a frame, dropping each point's distance from that plane.
public GeoArc2 ProjectToArc2(GeoCoordinateSystem3 frame)
Parameters
frameGeoCoordinateSystem3The frame to lay it out in.
Returns
- GeoArc2
The arc in the plane of the frame.
Remarks
An arc tilted out of the plane of the frame is, seen square onto it, an elliptical arc, which has no type here. It comes back as the circular arc through the projections of its start, its middle and its end, so those three points are right and the points between them are not: an arc of radius 300 over a quarter turn, tilted 60° about the line from its centre to its start, strays up to 10.8 from its true shadow. TryToArc2(GeoCoordinateSystem3, GeoArc3, out GeoArc2) refuses an arc that is not in the plane, and ProjectToEllipse2(GeoCoordinateSystem3) gives the true shadow of a whole circle.
A whole turn has to be laid out from its centre rather than from three of its points, because its start and its end are in the same place and there is no third point to be found among them. Any pair of angles describes the whole of a circle, so nought to nought is as good as any. Only an arc that sweeps a whole turn is one. An arc within a degree of one is laid out from its centre too, its start and its end being too near each other to find a circle through, but from where it starts and as far as it sweeps: the arc of radius 10 from 1 radian sweeping 359.5 degrees comes down as that arc, not as the whole circle from angle nought. An arc tilted to the frame comes down as part of an ellipse, which an arc cannot be, and one within a degree of a whole turn is laid out on its own radius about its centre, so its start, middle and end stand off where they come down: some 0.056 for that arc with its normal (0.2, 0, 1), and 0.0036 with (0.05, 0, 1).
Exceptions
- InvalidOperationException
Thrown when the arc stands square to the plane, where it would flatten into a segment rather than an arc.