Table of Contents

Method GetShortestLineTo

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

GetShortestLineTo(GeoPolygonArc2, GeoPoint2)

Gets the shortest segment joining a curved loop to a point.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoPoint2 point)

Parameters

loop GeoPolygonArc2
point GeoPoint2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the loop is null.

GetShortestLineTo(GeoPolygonArc2, GeoPoint2, Tolerance)

Gets the shortest segment joining a curved loop to a point, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoPoint2 point, Tolerance tolerance)

Parameters

loop GeoPolygonArc2

The curved loop.

point GeoPoint2

The point.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment from the point ProjectToPolygonArc(GeoPolygonArc2, GeoPoint2, Tolerance) gives to point, measured on the arcs. Like every shortest line in this class it runs from boundary to boundary, so a point inside is carried out to the nearest edge and the segment is as long as the depth to it, where DistanceTo(GeoPolygonArc2, GeoPoint2, Tolerance) reads the loop as filled and answers nought. Outside, by more than the tolerance, it is as long as DistanceTo(GeoPolygonArc2, GeoPoint2, Tolerance), which takes a point within the tolerance outside as in, but near the centre of an arc, as the remarks say; on the boundary it has no length. Where two edges are equally near, the first of them round the loop is taken.

Remarks

A point within the tolerance of the centre of an arc is read as at the centre, which has no direction, and is carried to the arc's start; the distance to the point is the exact one, so the line can be longer than it, by at most twice the point's offset from the centre. At a tolerance of a thousandth, the point (0, -0.0009) and the arc of radius 50 about the origin from (-50, 0) to (50, 0) through (0, -50): the closest point is (-50, 0), 50.00000001 away, where the distance is 49.9991.

A straight edge is joined as the edge it is however short, as the distance measures it: at a hundredth, the loop (0, 0), (10, 0), (10, 0.006), (0, 10) is 0.03 from (10.03, 0.003), and the line runs from (10, 0.003), 0.03 long, where its edge 0.006 long, no longer than the tolerance, gave one from (10, 0), 0.0301496 long.

Exceptions

ArgumentNullException

Thrown when the loop is null.

GetShortestLineTo(GeoPolygonArc2, GeoLine2)

Gets the shortest segment joining a curved loop to a segment.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoLine2 line)

Parameters

loop GeoPolygonArc2
line GeoLine2

Returns

GeoLine2

GetShortestLineTo(GeoPolygonArc2, GeoLine2, Tolerance)

Gets the shortest segment joining a curved loop to a segment, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoLine2 line, Tolerance tolerance)

Parameters

loop GeoPolygonArc2

The curved loop the segment leaves.

line GeoLine2

The segment the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving loop and landing on line.

GetShortestLineTo(GeoPolygonArc2, GeoArc2)

Gets the shortest segment joining a curved loop to an arc.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoArc2 arc)

Parameters

loop GeoPolygonArc2
arc GeoArc2

Returns

GeoLine2

GetShortestLineTo(GeoPolygonArc2, GeoArc2, Tolerance)

Gets the shortest segment joining a curved loop to an arc, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoArc2 arc, Tolerance tolerance)

Parameters

loop GeoPolygonArc2

The curved loop the segment leaves.

arc GeoArc2

The arc the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving loop and landing on arc.

GetShortestLineTo(GeoPolygonArc2, GeoCircle2)

Gets the shortest segment joining a curved loop to a circle.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoCircle2 circle)

Parameters

loop GeoPolygonArc2
circle GeoCircle2

Returns

GeoLine2

GetShortestLineTo(GeoPolygonArc2, GeoCircle2, Tolerance)

Gets the shortest segment joining a curved loop to a circle, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoCircle2 circle, Tolerance tolerance)

Parameters

loop GeoPolygonArc2

The curved loop the segment leaves.

circle GeoCircle2

The circle the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving loop and landing on circle.

GetShortestLineTo(GeoPolygonArc2, GeoPolygon2)

Gets the shortest segment joining a curved loop to a polygon.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoPolygon2 polygon)

Parameters

loop GeoPolygonArc2
polygon GeoPolygon2

Returns

GeoLine2

GetShortestLineTo(GeoPolygonArc2, GeoPolygon2, Tolerance)

Gets the shortest segment joining a curved loop to a polygon, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoPolygon2 polygon, Tolerance tolerance)

Parameters

loop GeoPolygonArc2

The curved loop the segment leaves.

polygon GeoPolygon2

The polygon the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving loop and landing on polygon.

GetShortestLineTo(GeoPolygonArc2, GeoPolyline2)

Gets the shortest segment joining a curved loop to a polyline.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoPolyline2 polyline)

Parameters

loop GeoPolygonArc2
polyline GeoPolyline2

Returns

GeoLine2

GetShortestLineTo(GeoPolygonArc2, GeoPolyline2, Tolerance)

Gets the shortest segment joining a curved loop to a polyline, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoPolyline2 polyline, Tolerance tolerance)

Parameters

loop GeoPolygonArc2

The curved loop the segment leaves.

polyline GeoPolyline2

The polyline the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving loop and landing on polyline.

GetShortestLineTo(GeoPolygonArc2, GeoPolygonArc2)

Gets the shortest segment joining a curved loop to another curved loop.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoPolygonArc2 other)

Parameters

loop GeoPolygonArc2
other GeoPolygonArc2

Returns

GeoLine2

GetShortestLineTo(GeoPolygonArc2, GeoPolygonArc2, Tolerance)

Gets the shortest segment joining a curved loop to another curved loop, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoPolygonArc2 other, Tolerance tolerance)

Parameters

loop GeoPolygonArc2

The curved loop the segment leaves.

other GeoPolygonArc2

The curved loop the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving loop and landing on other.

GetShortestLineTo(GeoPolygonArc2, GeoPolylineArc2)

Gets the shortest segment joining a curved loop to a curved chain.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoPolylineArc2 chain)

Parameters

loop GeoPolygonArc2
chain GeoPolylineArc2

Returns

GeoLine2

GetShortestLineTo(GeoPolygonArc2, GeoPolylineArc2, Tolerance)

Gets the shortest segment joining a curved loop to a curved chain, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoPolylineArc2 chain, Tolerance tolerance)

Parameters

loop GeoPolygonArc2

The curved loop the segment leaves.

chain GeoPolylineArc2

The curved chain the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving loop and landing on chain.

GetShortestLineTo(GeoPolylineArc2, GeoPoint2)

Gets the shortest segment joining a curved chain to a point.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoPoint2 point)

Parameters

chain GeoPolylineArc2
point GeoPoint2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetShortestLineTo(GeoPolylineArc2, GeoPoint2, Tolerance)

Gets the shortest segment joining a curved chain to a point, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoPoint2 point, Tolerance tolerance)

Parameters

chain GeoPolylineArc2

The curved chain.

point GeoPoint2

The point.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment from the point ProjectToPolylineArc(GeoPolylineArc2, GeoPoint2, Tolerance) gives to point, measured on the arcs, so it is exactly as long as DistanceTo(GeoPolylineArc2, GeoPoint2, Tolerance) but near the centre of an arc, as the remarks say. Where two edges are equally near, the first of them along the chain is taken.

Remarks

A point within the tolerance of the centre of an arc is read as at the centre, which has no direction, and is carried to the arc's start; the distance to the point is the exact one, so the line can be longer than it, by at most twice the point's offset from the centre. At a tolerance of a thousandth, the point (0, -0.0009) and the arc of radius 50 about the origin from (-50, 0) to (50, 0) through (0, -50): the closest point is (-50, 0), 50.00000001 away, where the distance is 49.9991.

A straight edge is joined as the edge it is however short, as the distance measures it: at a hundredth, the loop (0, 0), (10, 0), (10, 0.006), (0, 10) is 0.03 from (10.03, 0.003), and the line runs from (10, 0.003), 0.03 long, where its edge 0.006 long, no longer than the tolerance, gave one from (10, 0), 0.0301496 long.

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetShortestLineTo(GeoPolylineArc2, GeoLine2)

Gets the shortest segment joining a curved chain to a segment.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoLine2 line)

Parameters

chain GeoPolylineArc2
line GeoLine2

Returns

GeoLine2

GetShortestLineTo(GeoPolylineArc2, GeoLine2, Tolerance)

Gets the shortest segment joining a curved chain to a segment, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoLine2 line, Tolerance tolerance)

Parameters

chain GeoPolylineArc2

The curved chain the segment leaves.

line GeoLine2

The segment the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving chain and landing on line.

GetShortestLineTo(GeoPolylineArc2, GeoArc2)

Gets the shortest segment joining a curved chain to an arc.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoArc2 arc)

Parameters

chain GeoPolylineArc2
arc GeoArc2

Returns

GeoLine2

GetShortestLineTo(GeoPolylineArc2, GeoArc2, Tolerance)

Gets the shortest segment joining a curved chain to an arc, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoArc2 arc, Tolerance tolerance)

Parameters

chain GeoPolylineArc2

The curved chain the segment leaves.

arc GeoArc2

The arc the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving chain and landing on arc.

GetShortestLineTo(GeoPolylineArc2, GeoCircle2)

Gets the shortest segment joining a curved chain to a circle.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoCircle2 circle)

Parameters

chain GeoPolylineArc2
circle GeoCircle2

Returns

GeoLine2

GetShortestLineTo(GeoPolylineArc2, GeoCircle2, Tolerance)

Gets the shortest segment joining a curved chain to a circle, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoCircle2 circle, Tolerance tolerance)

Parameters

chain GeoPolylineArc2

The curved chain the segment leaves.

circle GeoCircle2

The circle the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving chain and landing on circle.

GetShortestLineTo(GeoPolylineArc2, GeoPolygon2)

Gets the shortest segment joining a curved chain to a polygon.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoPolygon2 polygon)

Parameters

chain GeoPolylineArc2
polygon GeoPolygon2

Returns

GeoLine2

GetShortestLineTo(GeoPolylineArc2, GeoPolygon2, Tolerance)

Gets the shortest segment joining a curved chain to a polygon, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoPolygon2 polygon, Tolerance tolerance)

Parameters

chain GeoPolylineArc2

The curved chain the segment leaves.

polygon GeoPolygon2

The polygon the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving chain and landing on polygon.

GetShortestLineTo(GeoPolylineArc2, GeoPolyline2)

Gets the shortest segment joining a curved chain to a polyline.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoPolyline2 polyline)

Parameters

chain GeoPolylineArc2
polyline GeoPolyline2

Returns

GeoLine2

GetShortestLineTo(GeoPolylineArc2, GeoPolyline2, Tolerance)

Gets the shortest segment joining a curved chain to a polyline, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoPolyline2 polyline, Tolerance tolerance)

Parameters

chain GeoPolylineArc2

The curved chain the segment leaves.

polyline GeoPolyline2

The polyline the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving chain and landing on polyline.

GetShortestLineTo(GeoPolylineArc2, GeoPolygonArc2)

Gets the shortest segment joining a curved chain to a curved loop.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoPolygonArc2 loop)

Parameters

chain GeoPolylineArc2
loop GeoPolygonArc2

Returns

GeoLine2

GetShortestLineTo(GeoPolylineArc2, GeoPolygonArc2, Tolerance)

Gets the shortest segment joining a curved chain to a curved loop, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoPolygonArc2 loop, Tolerance tolerance)

Parameters

chain GeoPolylineArc2

The curved chain the segment leaves.

loop GeoPolygonArc2

The curved loop the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving chain and landing on loop.

GetShortestLineTo(GeoPolylineArc2, GeoPolylineArc2)

Gets the shortest segment joining a curved chain to another curved chain.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoPolylineArc2 other)

Parameters

chain GeoPolylineArc2
other GeoPolylineArc2

Returns

GeoLine2

GetShortestLineTo(GeoPolylineArc2, GeoPolylineArc2, Tolerance)

Gets the shortest segment joining a curved chain to another curved chain, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoPolylineArc2 other, Tolerance tolerance)

Parameters

chain GeoPolylineArc2

The curved chain the segment leaves.

other GeoPolylineArc2

The curved chain the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving chain and landing on other.

GetShortestLineTo(GeoLine2, GeoPoint2)

Finds the shortest line segment connecting a point on line to point using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoPoint2 point)

Parameters

line GeoLine2

The line segment.

point GeoPoint2

The target point.

Returns

GeoLine2

A GeoLine2 whose start point is on line and end point is point.

GetShortestLineTo(GeoLine2, GeoPoint2, Tolerance)

Finds the shortest line segment connecting a point on line to point within tolerance.

public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoPoint2 point, Tolerance tolerance)

Parameters

line GeoLine2

The line segment.

point GeoPoint2

The target point.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A GeoLine2 from the point ProjectToLine(GeoLine2, GeoPoint2, Tolerance) gives to point, so it is exactly as long as DistanceTo(GeoLine2, GeoPoint2). From the segment (0, 0) to (100, 0) to the point (130, 40), it runs from (100, 0) and is 50 long.

GetShortestLineTo(GeoPolyline2, GeoPoint2)

Finds the shortest line segment connecting a point on the path of polyline to point using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoPoint2 point)

Parameters

polyline GeoPolyline2

The polyline.

point GeoPoint2

The target point.

Returns

GeoLine2

A GeoLine2 whose start point is on polyline and end point is point.

Exceptions

ArgumentNullException

Thrown when the polyline is null.

GetShortestLineTo(GeoPolyline2, GeoPoint2, Tolerance)

Finds the shortest line segment connecting a point on the path of polyline to point within tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoPoint2 point, Tolerance tolerance)

Parameters

polyline GeoPolyline2

The polyline.

point GeoPoint2

The target point.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A GeoLine2 from the point ProjectToPolyline(GeoPolyline2, GeoPoint2, Tolerance) gives to point, so it is as long as DistanceTo(GeoPolyline2, GeoPoint2), beside a leg no longer than the tolerance too: at a hundredth, the polyline (0, 0), (10, 0), (10, 0.006), (0, 0.006) is 0.03 from (10.03, 0.003), and the line runs from (10, 0.003), 0.03 long, where it ran from the leg's start (10, 0), 0.0301496 long. Only the path counts: a point in the mouth of a horseshoe gets the line out to the nearest leg, never one of no length. Where two legs are equally near, the first of them along the polyline is taken.

Exceptions

ArgumentNullException

Thrown when the polyline is null.

GetShortestLineTo(GeoLine2, GeoLine2)

Finds the shortest line segment connecting a point on line1 to a point on line2 using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoLine2 line1, GeoLine2 line2)

Parameters

line1 GeoLine2

The first line segment.

line2 GeoLine2

The second line segment.

Returns

GeoLine2

A GeoLine2 whose start point is on line1 and end point is on line2.

GetShortestLineTo(GeoLine2, GeoLine2, Tolerance)

Finds the shortest line segment connecting a point on line1 to a point on line2 within tolerance.

public static GeoLine2 GetShortestLineTo(GeoLine2 line1, GeoLine2 line2, Tolerance tolerance)

Parameters

line1 GeoLine2

The first line segment.

line2 GeoLine2

The second line segment.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A GeoLine2 whose start point is on line1 and end point is on line2.

Remarks

Two segments whose lines cross within the tolerance past the end of either are read as touching, and the segment has no length; past the ends of both they can be up to twice the tolerance apart, and touch only where they come within it. At a thousandth, the segment from the origin to (10, 0) and the one leaving (10.00135, 0.00078) at 60 degrees, whose lines cross 0.0009 past the end of each, are joined by the line between those two ends, 0.00156 long. A segment no longer than the point tolerance is read as its start where it does not truly meet the other, as DistanceTo(GeoLine2, GeoLine2, Tolerance) reads it: at a thousandth, the line from the segment from the origin to (10, 0) to the one from (5, 0.0015) to (5, 0.0006) runs to (5, 0.0015).

GetShortestLineTo(GeoLine2, GeoCircle2)

Finds the shortest line segment connecting a point on line to a point on the circumference of circle using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoCircle2 circle)

Parameters

line GeoLine2

The line segment.

circle GeoCircle2

The circle.

Returns

GeoLine2

A GeoLine2 whose start point is on line and end point is on the circumference of circle.

GetShortestLineTo(GeoLine2, GeoCircle2, Tolerance)

Finds the shortest line segment connecting a point on line to a point on the circumference of circle within tolerance.

public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoCircle2 circle, Tolerance tolerance)

Parameters

line GeoLine2

The line segment.

circle GeoCircle2

The circle.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A GeoLine2 whose start point is on line and end point is on the circumference of circle.

GetShortestLineTo(GeoLine2, GeoRectangle2)

Finds the shortest line segment connecting a point on line to a point on the boundary of rect using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoRectangle2 rect)

Parameters

line GeoLine2

The line segment.

rect GeoRectangle2

The rectangle.

Returns

GeoLine2

A GeoLine2 whose start point is on line and end point is on the boundary of rect.

GetShortestLineTo(GeoLine2, GeoRectangle2, Tolerance)

Finds the shortest line segment connecting a point on line to a point on the boundary of rect within tolerance.

public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoRectangle2 rect, Tolerance tolerance)

Parameters

line GeoLine2

The line segment.

rect GeoRectangle2

The rectangle.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A GeoLine2 whose start point is on line and end point is on the boundary of rect.

GetShortestLineTo(GeoLine2, GeoPolyline2)

Finds the shortest line segment connecting a point on line to a point on the polyline path of polyline using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoPolyline2 polyline)

Parameters

line GeoLine2

The line segment.

polyline GeoPolyline2

The polyline.

Returns

GeoLine2

A GeoLine2 whose start point is on line and end point is on polyline.

GetShortestLineTo(GeoLine2, GeoPolyline2, Tolerance)

Finds the shortest line segment connecting a point on line to a point on the polyline path of polyline within tolerance.

public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoPolyline2 polyline, Tolerance tolerance)

Parameters

line GeoLine2

The line segment.

polyline GeoPolyline2

The polyline.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A GeoLine2 whose start point is on line and end point is on polyline.

GetShortestLineTo(GeoLine2, GeoPolygon2)

Finds the shortest line segment connecting a point on line to a point on the boundary of poly using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoPolygon2 poly)

Parameters

line GeoLine2

The line segment.

poly GeoPolygon2

The polygon.

Returns

GeoLine2

A GeoLine2 whose start point is on line and end point is on the boundary of poly.

GetShortestLineTo(GeoLine2, GeoPolygon2, Tolerance)

Finds the shortest line segment connecting a point on line to a point on the boundary of poly within tolerance.

public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoPolygon2 poly, Tolerance tolerance)

Parameters

line GeoLine2

The line segment.

poly GeoPolygon2

The polygon.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A GeoLine2 whose start point is on line and end point is on the boundary of poly.

GetShortestLineTo(GeoCircle2, GeoPoint2)

Finds the shortest line segment connecting a point on the circumference of circle to point using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoPoint2 point)

Parameters

circle GeoCircle2
point GeoPoint2

Returns

GeoLine2

GetShortestLineTo(GeoCircle2, GeoPoint2, Tolerance)

Finds the shortest line segment connecting a point on the circumference of circle to point within tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoPoint2 point, Tolerance tolerance)

Parameters

circle GeoCircle2

The circle.

point GeoPoint2

The target point.

tolerance Tolerance

The tolerance ProjectToCircle(GeoCircle2, GeoPoint2, Tolerance) tells the centre with.

Returns

GeoLine2

A GeoLine2 from the point ProjectToCircle(GeoCircle2, GeoPoint2, Tolerance) gives to point. Like every shortest line in this class it runs from boundary to boundary, so a point inside is carried out to the nearest edge and the segment is as long as the depth to it, where DistanceTo(GeoCircle2, GeoPoint2) reads the circle as filled and answers nought. Outside, it is as long as DistanceTo(GeoCircle2, GeoPoint2); on the boundary it has no length. From the circle of radius 50 round the origin, the point (30, 0) gets the segment from (50, 0), 20 long, and the centre gets the one from (50, 0).

GetShortestLineTo(GeoCircle2, GeoLine2)

Finds the shortest line segment connecting a point on the circumference of circle to a point on line using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoLine2 line)

Parameters

circle GeoCircle2
line GeoLine2

Returns

GeoLine2

GetShortestLineTo(GeoCircle2, GeoLine2, Tolerance)

Finds the shortest line segment connecting a point on the circumference of circle to a point on line within tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoLine2 line, Tolerance tolerance)

Parameters

circle GeoCircle2
line GeoLine2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoCircle2, GeoCircle2)

Finds the shortest line segment connecting a point on the circumference of c1 to a point on the circumference of c2 using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 c1, GeoCircle2 c2)

Parameters

c1 GeoCircle2
c2 GeoCircle2

Returns

GeoLine2

GetShortestLineTo(GeoCircle2, GeoCircle2, Tolerance)

Finds the shortest line segment connecting a point on the circumference of c1 to a point on the circumference of c2 within tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 c1, GeoCircle2 c2, Tolerance tolerance)

Parameters

c1 GeoCircle2
c2 GeoCircle2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoCircle2, GeoRectangle2)

Finds the shortest line segment connecting a point on the circumference of circle to a point on the boundary of rect using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoRectangle2 rect)

Parameters

circle GeoCircle2
rect GeoRectangle2

Returns

GeoLine2

GetShortestLineTo(GeoCircle2, GeoRectangle2, Tolerance)

Finds the shortest line segment connecting a point on the circumference of circle to a point on the boundary of rect within tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoRectangle2 rect, Tolerance tolerance)

Parameters

circle GeoCircle2
rect GeoRectangle2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoCircle2, GeoPolyline2)

Finds the shortest line segment connecting a point on the circumference of circle to a point on the polyline path of polyline using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoPolyline2 polyline)

Parameters

circle GeoCircle2
polyline GeoPolyline2

Returns

GeoLine2

GetShortestLineTo(GeoCircle2, GeoPolyline2, Tolerance)

Finds the shortest line segment connecting a point on the circumference of circle to a point on the polyline path of polyline within tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoPolyline2 polyline, Tolerance tolerance)

Parameters

circle GeoCircle2
polyline GeoPolyline2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoCircle2, GeoPolygon2)

Finds the shortest line segment connecting a point on the circumference of circle to a point on the boundary of poly using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoPolygon2 poly)

Parameters

circle GeoCircle2
poly GeoPolygon2

Returns

GeoLine2

GetShortestLineTo(GeoCircle2, GeoPolygon2, Tolerance)

Finds the shortest line segment connecting a point on the circumference of circle to a point on the boundary of poly within tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoPolygon2 poly, Tolerance tolerance)

Parameters

circle GeoCircle2
poly GeoPolygon2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoRectangle2, GeoPoint2)

Finds the shortest line segment connecting a point on the boundary of rect to point using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoPoint2 point)

Parameters

rect GeoRectangle2
point GeoPoint2

Returns

GeoLine2

GetShortestLineTo(GeoRectangle2, GeoPoint2, Tolerance)

Finds the shortest line segment connecting a point on the boundary of rect to point.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoPoint2 point, Tolerance tolerance)

Parameters

rect GeoRectangle2

The rectangle.

point GeoPoint2

The target point.

tolerance Tolerance

The tolerance; not read, since ProjectToRectangle(GeoRectangle2, GeoPoint2) takes none.

Returns

GeoLine2

A GeoLine2 from the point ProjectToRectangle(GeoRectangle2, GeoPoint2) gives to point. Like every shortest line in this class it runs from boundary to boundary, so a point inside is carried out to the nearest edge and the segment is as long as the depth to it, where DistanceTo(GeoRectangle2, GeoPoint2) reads the rectangle as filled and answers nought. Outside, it is as long as DistanceTo(GeoRectangle2, GeoPoint2); on the boundary it has no length. A point inside as near two edges, on the line at 45 degrees from a corner, is carried to the edge along the rectangle's width: inside the rectangle 200 by 100 about the origin, (75, 25) goes to (75, 50).

GetShortestLineTo(GeoRectangle2, GeoLine2)

Finds the shortest line segment connecting a point on the boundary of rect to a point on line using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoLine2 line)

Parameters

rect GeoRectangle2
line GeoLine2

Returns

GeoLine2

GetShortestLineTo(GeoRectangle2, GeoLine2, Tolerance)

Finds the shortest line segment connecting a point on the boundary of rect to a point on line within tolerance.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoLine2 line, Tolerance tolerance)

Parameters

rect GeoRectangle2
line GeoLine2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoRectangle2, GeoCircle2)

Finds the shortest line segment connecting a point on the boundary of rect to a point on the circumference of circle using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoCircle2 circle)

Parameters

rect GeoRectangle2
circle GeoCircle2

Returns

GeoLine2

GetShortestLineTo(GeoRectangle2, GeoCircle2, Tolerance)

Finds the shortest line segment connecting a point on the boundary of rect to a point on the circumference of circle within tolerance.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoCircle2 circle, Tolerance tolerance)

Parameters

rect GeoRectangle2
circle GeoCircle2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoRectangle2, GeoRectangle2)

Finds the shortest line segment connecting a point on the boundary of r1 to a point on the boundary of r2 using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 r1, GeoRectangle2 r2)

Parameters

r1 GeoRectangle2
r2 GeoRectangle2

Returns

GeoLine2

GetShortestLineTo(GeoRectangle2, GeoRectangle2, Tolerance)

Finds the shortest line segment connecting a point on the boundary of r1 to a point on the boundary of r2 within tolerance.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 r1, GeoRectangle2 r2, Tolerance tolerance)

Parameters

r1 GeoRectangle2
r2 GeoRectangle2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoRectangle2, GeoPolyline2)

Finds the shortest line segment connecting a point on the boundary of rect to a point on the polyline path of polyline using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoPolyline2 polyline)

Parameters

rect GeoRectangle2
polyline GeoPolyline2

Returns

GeoLine2

GetShortestLineTo(GeoRectangle2, GeoPolyline2, Tolerance)

Finds the shortest line segment connecting a point on the boundary of rect to a point on the polyline path of polyline within tolerance.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoPolyline2 polyline, Tolerance tolerance)

Parameters

rect GeoRectangle2
polyline GeoPolyline2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoRectangle2, GeoPolygon2)

Finds the shortest line segment connecting a point on the boundary of rect to a point on the boundary of poly using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoPolygon2 poly)

Parameters

rect GeoRectangle2
poly GeoPolygon2

Returns

GeoLine2

GetShortestLineTo(GeoRectangle2, GeoPolygon2, Tolerance)

Finds the shortest line segment connecting a point on the boundary of rect to a point on the boundary of poly within tolerance.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoPolygon2 poly, Tolerance tolerance)

Parameters

rect GeoRectangle2
poly GeoPolygon2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoPolyline2, GeoLine2)

Finds the shortest line segment connecting a point on polyline to a point on line using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoLine2 line)

Parameters

polyline GeoPolyline2
line GeoLine2

Returns

GeoLine2

GetShortestLineTo(GeoPolyline2, GeoLine2, Tolerance)

Finds the shortest line segment connecting a point on polyline to a point on line within tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoLine2 line, Tolerance tolerance)

Parameters

polyline GeoPolyline2
line GeoLine2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoPolyline2, GeoCircle2)

Finds the shortest line segment connecting a point on polyline to a point on the circumference of circle using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoCircle2 circle)

Parameters

polyline GeoPolyline2
circle GeoCircle2

Returns

GeoLine2

GetShortestLineTo(GeoPolyline2, GeoCircle2, Tolerance)

Finds the shortest line segment connecting a point on polyline to a point on the circumference of circle within tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoCircle2 circle, Tolerance tolerance)

Parameters

polyline GeoPolyline2
circle GeoCircle2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoPolyline2, GeoRectangle2)

Finds the shortest line segment connecting a point on polyline to a point on the boundary of rect using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoRectangle2 rect)

Parameters

polyline GeoPolyline2
rect GeoRectangle2

Returns

GeoLine2

GetShortestLineTo(GeoPolyline2, GeoRectangle2, Tolerance)

Finds the shortest line segment connecting a point on polyline to a point on the boundary of rect within tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoRectangle2 rect, Tolerance tolerance)

Parameters

polyline GeoPolyline2
rect GeoRectangle2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoPolyline2, GeoPolyline2)

Finds the shortest line segment connecting a point on p1 to a point on p2 using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 p1, GeoPolyline2 p2)

Parameters

p1 GeoPolyline2
p2 GeoPolyline2

Returns

GeoLine2

GetShortestLineTo(GeoPolyline2, GeoPolyline2, Tolerance)

Finds the shortest line segment connecting a point on p1 to a point on p2 within tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 p1, GeoPolyline2 p2, Tolerance tolerance)

Parameters

p1 GeoPolyline2
p2 GeoPolyline2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoPolyline2, GeoPolygon2)

Finds the shortest line segment connecting a point on polyline to a point on the boundary of poly using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoPolygon2 poly)

Parameters

polyline GeoPolyline2
poly GeoPolygon2

Returns

GeoLine2

GetShortestLineTo(GeoPolyline2, GeoPolygon2, Tolerance)

Finds the shortest line segment connecting a point on polyline to a point on the boundary of poly within tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoPolygon2 poly, Tolerance tolerance)

Parameters

polyline GeoPolyline2
poly GeoPolygon2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoPolygon2, GeoPoint2)

Finds the shortest line segment connecting a point on the boundary of poly to point using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoPoint2 point)

Parameters

poly GeoPolygon2
point GeoPoint2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetShortestLineTo(GeoPolygon2, GeoPoint2, Tolerance)

Finds the shortest line segment connecting a point on the boundary of poly to point within tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoPoint2 point, Tolerance tolerance)

Parameters

poly GeoPolygon2

The polygon.

point GeoPoint2

The target point.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A GeoLine2 from the point ProjectToPolygon(GeoPolygon2, GeoPoint2, Tolerance) gives to point. Like every shortest line in this class it runs from boundary to boundary, so a point inside is carried out to the nearest edge and the segment is as long as the depth to it, where DistanceTo(GeoPolygon2, GeoPoint2) reads the polygon as filled and answers nought. Outside, by more than the tolerance, it is as long as DistanceTo(GeoPolygon2, GeoPoint2), which takes a point within the tolerance outside as in; on the boundary it has no length. Where two edges are equally near, the first of them round the polygon is taken. Inside the square 100 by 100 on the origin, the point (50, 30) gets the segment from (50, 0), 30 long. Beside a side no longer than the tolerance it runs from the side as it is: at a hundredth, the polygon (0, 0), (10, 0), (10, 0.006), (0, 10) is 0.03 from (10.03, 0.003), and the segment runs from (10, 0.003), 0.03 long, where it ran from the side's start (10, 0), 0.0301496 long.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetShortestLineTo(GeoPolygon2, GeoLine2)

Finds the shortest line segment connecting a point on the boundary of poly to a point on line using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoLine2 line)

Parameters

poly GeoPolygon2
line GeoLine2

Returns

GeoLine2

GetShortestLineTo(GeoPolygon2, GeoLine2, Tolerance)

Finds the shortest line segment connecting a point on the boundary of poly to a point on line within tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoLine2 line, Tolerance tolerance)

Parameters

poly GeoPolygon2
line GeoLine2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoPolygon2, GeoCircle2)

Finds the shortest line segment connecting a point on the boundary of poly to a point on the circumference of circle using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoCircle2 circle)

Parameters

poly GeoPolygon2
circle GeoCircle2

Returns

GeoLine2

GetShortestLineTo(GeoPolygon2, GeoCircle2, Tolerance)

Finds the shortest line segment connecting a point on the boundary of poly to a point on the circumference of circle within tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoCircle2 circle, Tolerance tolerance)

Parameters

poly GeoPolygon2
circle GeoCircle2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoPolygon2, GeoRectangle2)

Finds the shortest line segment connecting a point on the boundary of poly to a point on the boundary of rect using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoRectangle2 rect)

Parameters

poly GeoPolygon2
rect GeoRectangle2

Returns

GeoLine2

GetShortestLineTo(GeoPolygon2, GeoRectangle2, Tolerance)

Finds the shortest line segment connecting a point on the boundary of poly to a point on the boundary of rect within tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoRectangle2 rect, Tolerance tolerance)

Parameters

poly GeoPolygon2
rect GeoRectangle2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoPolygon2, GeoPolyline2)

Finds the shortest line segment connecting a point on the boundary of poly to a point on polyline using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoPolyline2 polyline)

Parameters

poly GeoPolygon2
polyline GeoPolyline2

Returns

GeoLine2

GetShortestLineTo(GeoPolygon2, GeoPolyline2, Tolerance)

Finds the shortest line segment connecting a point on the boundary of poly to a point on polyline within tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoPolyline2 polyline, Tolerance tolerance)

Parameters

poly GeoPolygon2
polyline GeoPolyline2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoPolygon2, GeoPolygon2)

Finds the shortest line segment connecting a point on the boundary of p1 to a point on the boundary of p2 using default tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 p1, GeoPolygon2 p2)

Parameters

p1 GeoPolygon2
p2 GeoPolygon2

Returns

GeoLine2

GetShortestLineTo(GeoPolygon2, GeoPolygon2, Tolerance)

Finds the shortest line segment connecting a point on the boundary of p1 to a point on the boundary of p2 within tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 p1, GeoPolygon2 p2, Tolerance tolerance)

Parameters

p1 GeoPolygon2
p2 GeoPolygon2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoLine2, GeoArc2)

Gets the shortest segment joining a segment to an arc.

public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoArc2 arc)

Parameters

line GeoLine2
arc GeoArc2

Returns

GeoLine2

GetShortestLineTo(GeoLine2, GeoArc2, Tolerance)

Gets the shortest segment joining a segment to an arc, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoArc2 arc, Tolerance tolerance)

Parameters

line GeoLine2

The segment the segment leaves.

arc GeoArc2

The arc the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving line and landing on arc.

GetShortestLineTo(GeoLine2, GeoPolygonArc2)

Gets the shortest segment joining a segment to a curved loop.

public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoPolygonArc2 loop)

Parameters

line GeoLine2
loop GeoPolygonArc2

Returns

GeoLine2

GetShortestLineTo(GeoLine2, GeoPolygonArc2, Tolerance)

Gets the shortest segment joining a segment to a curved loop, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoPolygonArc2 loop, Tolerance tolerance)

Parameters

line GeoLine2

The segment the segment leaves.

loop GeoPolygonArc2

The curved loop the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving line and landing on loop.

GetShortestLineTo(GeoLine2, GeoPolylineArc2)

Gets the shortest segment joining a segment to a curved chain.

public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoPolylineArc2 chain)

Parameters

line GeoLine2
chain GeoPolylineArc2

Returns

GeoLine2

GetShortestLineTo(GeoLine2, GeoPolylineArc2, Tolerance)

Gets the shortest segment joining a segment to a curved chain, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoPolylineArc2 chain, Tolerance tolerance)

Parameters

line GeoLine2

The segment the segment leaves.

chain GeoPolylineArc2

The curved chain the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving line and landing on chain.

GetShortestLineTo(GeoCircle2, GeoArc2)

Gets the shortest segment joining a circle to an arc.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoArc2 arc)

Parameters

circle GeoCircle2
arc GeoArc2

Returns

GeoLine2

GetShortestLineTo(GeoCircle2, GeoArc2, Tolerance)

Gets the shortest segment joining a circle to an arc, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoArc2 arc, Tolerance tolerance)

Parameters

circle GeoCircle2

The circle the segment leaves.

arc GeoArc2

The arc the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving circle and landing on arc.

GetShortestLineTo(GeoCircle2, GeoPolygonArc2)

Gets the shortest segment joining a circle to a curved loop.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoPolygonArc2 loop)

Parameters

circle GeoCircle2
loop GeoPolygonArc2

Returns

GeoLine2

GetShortestLineTo(GeoCircle2, GeoPolygonArc2, Tolerance)

Gets the shortest segment joining a circle to a curved loop, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoPolygonArc2 loop, Tolerance tolerance)

Parameters

circle GeoCircle2

The circle the segment leaves.

loop GeoPolygonArc2

The curved loop the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving circle and landing on loop.

GetShortestLineTo(GeoCircle2, GeoPolylineArc2)

Gets the shortest segment joining a circle to a curved chain.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoPolylineArc2 chain)

Parameters

circle GeoCircle2
chain GeoPolylineArc2

Returns

GeoLine2

GetShortestLineTo(GeoCircle2, GeoPolylineArc2, Tolerance)

Gets the shortest segment joining a circle to a curved chain, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoPolylineArc2 chain, Tolerance tolerance)

Parameters

circle GeoCircle2

The circle the segment leaves.

chain GeoPolylineArc2

The curved chain the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving circle and landing on chain.

GetShortestLineTo(GeoRectangle2, GeoArc2)

Gets the shortest segment joining a rectangle to an arc.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoArc2 arc)

Parameters

rect GeoRectangle2
arc GeoArc2

Returns

GeoLine2

GetShortestLineTo(GeoRectangle2, GeoArc2, Tolerance)

Gets the shortest segment joining a rectangle to an arc, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoArc2 arc, Tolerance tolerance)

Parameters

rect GeoRectangle2

The rectangle the segment leaves.

arc GeoArc2

The arc the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving rect and landing on arc.

GetShortestLineTo(GeoRectangle2, GeoPolygonArc2)

Gets the shortest segment joining a rectangle to a curved loop.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoPolygonArc2 loop)

Parameters

rect GeoRectangle2
loop GeoPolygonArc2

Returns

GeoLine2

GetShortestLineTo(GeoRectangle2, GeoPolygonArc2, Tolerance)

Gets the shortest segment joining a rectangle to a curved loop, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoPolygonArc2 loop, Tolerance tolerance)

Parameters

rect GeoRectangle2

The rectangle the segment leaves.

loop GeoPolygonArc2

The curved loop the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving rect and landing on loop.

GetShortestLineTo(GeoRectangle2, GeoPolylineArc2)

Gets the shortest segment joining a rectangle to a curved chain.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoPolylineArc2 chain)

Parameters

rect GeoRectangle2
chain GeoPolylineArc2

Returns

GeoLine2

GetShortestLineTo(GeoRectangle2, GeoPolylineArc2, Tolerance)

Gets the shortest segment joining a rectangle to a curved chain, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoPolylineArc2 chain, Tolerance tolerance)

Parameters

rect GeoRectangle2

The rectangle the segment leaves.

chain GeoPolylineArc2

The curved chain the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving rect and landing on chain.

GetShortestLineTo(GeoPolygon2, GeoArc2)

Gets the shortest segment joining a polygon to an arc.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoArc2 arc)

Parameters

poly GeoPolygon2
arc GeoArc2

Returns

GeoLine2

GetShortestLineTo(GeoPolygon2, GeoArc2, Tolerance)

Gets the shortest segment joining a polygon to an arc, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoArc2 arc, Tolerance tolerance)

Parameters

poly GeoPolygon2

The polygon the segment leaves.

arc GeoArc2

The arc the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving poly and landing on arc.

GetShortestLineTo(GeoPolygon2, GeoPolygonArc2)

Gets the shortest segment joining a polygon to a curved loop.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoPolygonArc2 loop)

Parameters

poly GeoPolygon2
loop GeoPolygonArc2

Returns

GeoLine2

GetShortestLineTo(GeoPolygon2, GeoPolygonArc2, Tolerance)

Gets the shortest segment joining a polygon to a curved loop, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoPolygonArc2 loop, Tolerance tolerance)

Parameters

poly GeoPolygon2

The polygon the segment leaves.

loop GeoPolygonArc2

The curved loop the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving poly and landing on loop.

GetShortestLineTo(GeoPolygon2, GeoPolylineArc2)

Gets the shortest segment joining a polygon to a curved chain.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoPolylineArc2 chain)

Parameters

poly GeoPolygon2
chain GeoPolylineArc2

Returns

GeoLine2

GetShortestLineTo(GeoPolygon2, GeoPolylineArc2, Tolerance)

Gets the shortest segment joining a polygon to a curved chain, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoPolylineArc2 chain, Tolerance tolerance)

Parameters

poly GeoPolygon2

The polygon the segment leaves.

chain GeoPolylineArc2

The curved chain the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving poly and landing on chain.

GetShortestLineTo(GeoPolyline2, GeoArc2)

Gets the shortest segment joining a polyline to an arc.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoArc2 arc)

Parameters

polyline GeoPolyline2
arc GeoArc2

Returns

GeoLine2

GetShortestLineTo(GeoPolyline2, GeoArc2, Tolerance)

Gets the shortest segment joining a polyline to an arc, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoArc2 arc, Tolerance tolerance)

Parameters

polyline GeoPolyline2

The polyline the segment leaves.

arc GeoArc2

The arc the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving polyline and landing on arc.

GetShortestLineTo(GeoPolyline2, GeoPolygonArc2)

Gets the shortest segment joining a polyline to a curved loop.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoPolygonArc2 loop)

Parameters

polyline GeoPolyline2
loop GeoPolygonArc2

Returns

GeoLine2

GetShortestLineTo(GeoPolyline2, GeoPolygonArc2, Tolerance)

Gets the shortest segment joining a polyline to a curved loop, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoPolygonArc2 loop, Tolerance tolerance)

Parameters

polyline GeoPolyline2

The polyline the segment leaves.

loop GeoPolygonArc2

The curved loop the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving polyline and landing on loop.

GetShortestLineTo(GeoPolyline2, GeoPolylineArc2)

Gets the shortest segment joining a polyline to a curved chain.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoPolylineArc2 chain)

Parameters

polyline GeoPolyline2
chain GeoPolylineArc2

Returns

GeoLine2

GetShortestLineTo(GeoPolyline2, GeoPolylineArc2, Tolerance)

Gets the shortest segment joining a polyline to a curved chain, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoPolylineArc2 chain, Tolerance tolerance)

Parameters

polyline GeoPolyline2

The polyline the segment leaves.

chain GeoPolylineArc2

The curved chain the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

A segment leaving polyline and landing on chain.

GetShortestLineTo(GeoRay2, GeoPoint2)

Gets the shortest segment leaving a ray and landing on a point, using the default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoPoint2 point)

Parameters

ray GeoRay2
point GeoPoint2

Returns

GeoLine2

GetShortestLineTo(GeoRay2, GeoPoint2, Tolerance)

Gets the shortest segment leaving a ray and landing on a point, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoPoint2 point, Tolerance tolerance)

Parameters

ray GeoRay2

The ray.

point GeoPoint2

The point.

tolerance Tolerance

The tolerance, taken so that this reads like every other pair; it changes nothing here.

Returns

GeoLine2

The segment from the projection of the point on the ray, stopped at the origin, to the point: from the ray leaving the origin along X, the point (-30, 40) gets the one from the origin, 50 long.

GetShortestLineTo(GeoRay2, GeoLine2)

Gets the shortest segment leaving a ray and landing on a line segment, using the default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoLine2 line)

Parameters

ray GeoRay2
line GeoLine2

Returns

GeoLine2

GetShortestLineTo(GeoRay2, GeoLine2, Tolerance)

Gets the shortest segment leaving a ray and landing on a line segment, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoLine2 line, Tolerance tolerance)

Parameters

ray GeoRay2
line GeoLine2
tolerance Tolerance

Returns

GeoLine2

A segment leaving the ray and landing on line, of no length at all where the two cross.

GetShortestLineTo(GeoRay2, GeoRay2)

Gets the shortest segment leaving one ray and landing on another, using the default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray1, GeoRay2 ray2)

Parameters

ray1 GeoRay2
ray2 GeoRay2

Returns

GeoLine2

GetShortestLineTo(GeoRay2, GeoRay2, Tolerance)

Gets the shortest segment leaving one ray and landing on another, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray1, GeoRay2 ray2, Tolerance tolerance)

Parameters

ray1 GeoRay2

The ray the segment leaves.

ray2 GeoRay2

The ray the segment lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

The segment of no length at the crossing where the two truly cross, at or ahead of both origins; otherwise the shorter of two candidates, the origin of the second brought onto the first and the origin of the first brought onto the second, the first of them on a tie.

Remarks

The ray from the origin along X gets the segment from (50, 0) to (50, 30) to the ray from (50, 30) along Y.

GetShortestLineTo(GeoRay2, GeoArc2)

Gets the shortest segment leaving a ray and landing on an arc, using the default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoArc2 arc)

Parameters

ray GeoRay2
arc GeoArc2

Returns

GeoLine2

GetShortestLineTo(GeoRay2, GeoArc2, Tolerance)

Gets the shortest segment leaving a ray and landing on an arc, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoArc2 arc, Tolerance tolerance)

Parameters

ray GeoRay2
arc GeoArc2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoRay2, GeoCircle2)

Gets the shortest segment leaving a ray and landing on the circumference of a circle, using the default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoCircle2 circle)

Parameters

ray GeoRay2
circle GeoCircle2

Returns

GeoLine2

GetShortestLineTo(GeoRay2, GeoCircle2, Tolerance)

Gets the shortest segment leaving a ray and landing on the circumference of a circle, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoCircle2 circle, Tolerance tolerance)

Parameters

ray GeoRay2
circle GeoCircle2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoRay2, GeoPolygon2)

Gets the shortest segment leaving a ray and landing on the boundary of a polygon, using the default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoPolygon2 poly)

Parameters

ray GeoRay2
poly GeoPolygon2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetShortestLineTo(GeoRay2, GeoPolygon2, Tolerance)

Gets the shortest segment leaving a ray and landing on the boundary of a polygon, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoPolygon2 poly, Tolerance tolerance)

Parameters

ray GeoRay2
poly GeoPolygon2
tolerance Tolerance

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetShortestLineTo(GeoRay2, GeoPolygonArc2)

Gets the shortest segment leaving a ray and landing on a curved loop, using the default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoPolygonArc2 loop)

Parameters

ray GeoRay2
loop GeoPolygonArc2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the loop is null.

GetShortestLineTo(GeoRay2, GeoPolygonArc2, Tolerance)

Gets the shortest segment leaving a ray and landing on a curved loop, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoPolygonArc2 loop, Tolerance tolerance)

Parameters

ray GeoRay2
loop GeoPolygonArc2
tolerance Tolerance

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the loop is null.

GetShortestLineTo(GeoRay2, GeoPolyline2)

Gets the shortest segment leaving a ray and landing on a polyline, using the default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoPolyline2 polyline)

Parameters

ray GeoRay2
polyline GeoPolyline2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the polyline is null.

GetShortestLineTo(GeoRay2, GeoPolyline2, Tolerance)

Gets the shortest segment leaving a ray and landing on a polyline, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoPolyline2 polyline, Tolerance tolerance)

Parameters

ray GeoRay2
polyline GeoPolyline2
tolerance Tolerance

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the polyline is null.

GetShortestLineTo(GeoRay2, GeoPolylineArc2)

Gets the shortest segment leaving a ray and landing on a curved chain, using the default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoPolylineArc2 chain)

Parameters

ray GeoRay2
chain GeoPolylineArc2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetShortestLineTo(GeoRay2, GeoPolylineArc2, Tolerance)

Gets the shortest segment leaving a ray and landing on a curved chain, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoPolylineArc2 chain, Tolerance tolerance)

Parameters

ray GeoRay2
chain GeoPolylineArc2
tolerance Tolerance

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetShortestLineTo(GeoRay2, GeoRectangle2)

Gets the shortest segment leaving a ray and landing on the boundary of a rectangle, using the default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoRectangle2 rect)

Parameters

ray GeoRay2
rect GeoRectangle2

Returns

GeoLine2

GetShortestLineTo(GeoRay2, GeoRectangle2, Tolerance)

Gets the shortest segment leaving a ray and landing on the boundary of a rectangle, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoRay2 ray, GeoRectangle2 rect, Tolerance tolerance)

Parameters

ray GeoRay2
rect GeoRectangle2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoCircle2, GeoRay2)

Gets the shortest segment leaving the circumference of a circle and landing on a ray, using the default tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoRay2 ray)

Parameters

circle GeoCircle2
ray GeoRay2

Returns

GeoLine2

GetShortestLineTo(GeoCircle2, GeoRay2, Tolerance)

Gets the shortest segment leaving the circumference of a circle and landing on a ray, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoRay2 ray, Tolerance tolerance)

Parameters

circle GeoCircle2
ray GeoRay2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoPolygon2, GeoRay2)

Gets the shortest segment leaving the boundary of a polygon and landing on a ray, using the default tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoRay2 ray)

Parameters

poly GeoPolygon2
ray GeoRay2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetShortestLineTo(GeoPolygon2, GeoRay2, Tolerance)

Gets the shortest segment leaving the boundary of a polygon and landing on a ray, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoRay2 ray, Tolerance tolerance)

Parameters

poly GeoPolygon2
ray GeoRay2
tolerance Tolerance

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetShortestLineTo(GeoPolygonArc2, GeoRay2)

Gets the shortest segment leaving a curved loop and landing on a ray, using the default tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoRay2 ray)

Parameters

loop GeoPolygonArc2
ray GeoRay2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the loop is null.

GetShortestLineTo(GeoPolygonArc2, GeoRay2, Tolerance)

Gets the shortest segment leaving a curved loop and landing on a ray, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoRay2 ray, Tolerance tolerance)

Parameters

loop GeoPolygonArc2
ray GeoRay2
tolerance Tolerance

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the loop is null.

GetShortestLineTo(GeoPolyline2, GeoRay2)

Gets the shortest segment leaving a polyline and landing on a ray, using the default tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoRay2 ray)

Parameters

polyline GeoPolyline2
ray GeoRay2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the polyline is null.

GetShortestLineTo(GeoPolyline2, GeoRay2, Tolerance)

Gets the shortest segment leaving a polyline and landing on a ray, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoRay2 ray, Tolerance tolerance)

Parameters

polyline GeoPolyline2
ray GeoRay2
tolerance Tolerance

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the polyline is null.

GetShortestLineTo(GeoPolylineArc2, GeoRay2)

Gets the shortest segment leaving a curved chain and landing on a ray, using the default tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoRay2 ray)

Parameters

chain GeoPolylineArc2
ray GeoRay2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetShortestLineTo(GeoPolylineArc2, GeoRay2, Tolerance)

Gets the shortest segment leaving a curved chain and landing on a ray, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoRay2 ray, Tolerance tolerance)

Parameters

chain GeoPolylineArc2
ray GeoRay2
tolerance Tolerance

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetShortestLineTo(GeoRectangle2, GeoRay2)

Gets the shortest segment leaving the boundary of a rectangle and landing on a ray, using the default tolerance.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoRay2 ray)

Parameters

rect GeoRectangle2
ray GeoRay2

Returns

GeoLine2

GetShortestLineTo(GeoRectangle2, GeoRay2, Tolerance)

Gets the shortest segment leaving the boundary of a rectangle and landing on a ray, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoRay2 ray, Tolerance tolerance)

Parameters

rect GeoRectangle2
ray GeoRay2
tolerance Tolerance

Returns

GeoLine2