Method GetShortestLineTo
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
GetShortestLineTo(GeoArc2, GeoPoint2)
Gets the shortest segment joining an arc to a point, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoArc2 arc, GeoPoint2 point)
Parameters
Returns
GetShortestLineTo(GeoArc2, GeoPoint2, Tolerance)
Gets the shortest segment joining an arc to a point, within a tolerance.
public static GeoLine2 GetShortestLineTo(GeoArc2 arc, GeoPoint2 point, Tolerance tolerance)
Parameters
Returns
- GeoLine2
A segment leaving the arc and ending at
point.
GetShortestLineTo(GeoArc2, GeoLine2)
Gets the shortest segment joining an arc to a straight segment, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoArc2 arc, GeoLine2 line)
Parameters
Returns
GetShortestLineTo(GeoArc2, GeoLine2, Tolerance)
Gets the shortest segment joining an arc to a straight segment, within a tolerance.
public static GeoLine2 GetShortestLineTo(GeoArc2 arc, GeoLine2 line, Tolerance tolerance)
Parameters
Returns
- GeoLine2
A segment leaving the arc and landing on
line, of no length at all where the two cross.
Remarks
The candidates are the ones DistanceTo(GeoArc2, GeoLine2, Tolerance) already weighs — an end of one against the other, and the place where the segment runs straight at the centre — so this hands back the pair that measurement was of, and its length is that same distance rather than anything sampled.
GetShortestLineTo(GeoArc2, GeoArc2)
Gets the shortest segment joining two arcs, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoArc2 first, GeoArc2 second)
Parameters
Returns
GetShortestLineTo(GeoArc2, GeoArc2, Tolerance)
Gets the shortest segment joining two arcs, within a tolerance.
public static GeoLine2 GetShortestLineTo(GeoArc2 first, GeoArc2 second, Tolerance tolerance)
Parameters
firstGeoArc2The arc the segment leaves.
secondGeoArc2The arc the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
firstand landing onsecond, of no length at all where the two cross.
Remarks
As with an arc and a segment, the pair is one of those DistanceTo(GeoArc2, GeoArc2, Tolerance) already weighs: an end of one against the other, or a point of each on the line joining the centres.
GetShortestLineTo(GeoArc2, GeoCircle2)
Gets the shortest segment joining an arc to a circle, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoArc2 arc, GeoCircle2 circle)
Parameters
arcGeoArc2circleGeoCircle2
Returns
GetShortestLineTo(GeoArc2, GeoCircle2, Tolerance)
Gets the shortest segment joining an arc to a circle, within a tolerance.
public static GeoLine2 GetShortestLineTo(GeoArc2 arc, GeoCircle2 circle, Tolerance tolerance)
Parameters
arcGeoArc2circleGeoCircle2toleranceTolerance
Returns
Remarks
A circle is an arc that sweeps a whole turn, so the two are joined the way two arcs are.