Table of Contents

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

arc GeoArc2
point GeoPoint2

Returns

GeoLine2

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

arc GeoArc2

The arc.

point GeoPoint2

The point.

tolerance Tolerance

The tolerance.

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

arc GeoArc2
line GeoLine2

Returns

GeoLine2

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

arc GeoArc2

The arc.

line GeoLine2

The segment.

tolerance Tolerance

The tolerance.

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

first GeoArc2
second GeoArc2

Returns

GeoLine2

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

first GeoArc2

The arc the segment leaves.

second GeoArc2

The arc the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving first and landing on second, 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

arc GeoArc2
circle GeoCircle2

Returns

GeoLine2

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

arc GeoArc2
circle GeoCircle2
tolerance Tolerance

Returns

GeoLine2

Remarks

A circle is an arc that sweeps a whole turn, so the two are joined the way two arcs are.