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
loopGeoPolygonArc2pointGeoPoint2
Returns
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
loopGeoPolygonArc2The curved loop.
pointGeoPoint2The point.
toleranceToleranceThe 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
loopGeoPolygonArc2lineGeoLine2
Returns
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
loopGeoPolygonArc2The curved loop the segment leaves.
lineGeoLine2The segment the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
loopand landing online.
GetShortestLineTo(GeoPolygonArc2, GeoArc2)
Gets the shortest segment joining a curved loop to an arc.
public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoArc2 arc)
Parameters
loopGeoPolygonArc2arcGeoArc2
Returns
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
loopGeoPolygonArc2The curved loop the segment leaves.
arcGeoArc2The arc the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
loopand landing onarc.
GetShortestLineTo(GeoPolygonArc2, GeoCircle2)
Gets the shortest segment joining a curved loop to a circle.
public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoCircle2 circle)
Parameters
loopGeoPolygonArc2circleGeoCircle2
Returns
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
loopGeoPolygonArc2The curved loop the segment leaves.
circleGeoCircle2The circle the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
loopand landing oncircle.
GetShortestLineTo(GeoPolygonArc2, GeoPolygon2)
Gets the shortest segment joining a curved loop to a polygon.
public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoPolygon2 polygon)
Parameters
loopGeoPolygonArc2polygonGeoPolygon2
Returns
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
loopGeoPolygonArc2The curved loop the segment leaves.
polygonGeoPolygon2The polygon the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
loopand landing onpolygon.
GetShortestLineTo(GeoPolygonArc2, GeoPolyline2)
Gets the shortest segment joining a curved loop to a polyline.
public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoPolyline2 polyline)
Parameters
loopGeoPolygonArc2polylineGeoPolyline2
Returns
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
loopGeoPolygonArc2The curved loop the segment leaves.
polylineGeoPolyline2The polyline the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
loopand landing onpolyline.
GetShortestLineTo(GeoPolygonArc2, GeoPolygonArc2)
Gets the shortest segment joining a curved loop to another curved loop.
public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoPolygonArc2 other)
Parameters
loopGeoPolygonArc2otherGeoPolygonArc2
Returns
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
loopGeoPolygonArc2The curved loop the segment leaves.
otherGeoPolygonArc2The curved loop the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
loopand landing onother.
GetShortestLineTo(GeoPolygonArc2, GeoPolylineArc2)
Gets the shortest segment joining a curved loop to a curved chain.
public static GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, GeoPolylineArc2 chain)
Parameters
loopGeoPolygonArc2chainGeoPolylineArc2
Returns
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
loopGeoPolygonArc2The curved loop the segment leaves.
chainGeoPolylineArc2The curved chain the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
loopand landing onchain.
GetShortestLineTo(GeoPolylineArc2, GeoPoint2)
Gets the shortest segment joining a curved chain to a point.
public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoPoint2 point)
Parameters
chainGeoPolylineArc2pointGeoPoint2
Returns
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
chainGeoPolylineArc2The curved chain.
pointGeoPoint2The point.
toleranceToleranceThe 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
chainGeoPolylineArc2lineGeoLine2
Returns
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
chainGeoPolylineArc2The curved chain the segment leaves.
lineGeoLine2The segment the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
chainand landing online.
GetShortestLineTo(GeoPolylineArc2, GeoArc2)
Gets the shortest segment joining a curved chain to an arc.
public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoArc2 arc)
Parameters
chainGeoPolylineArc2arcGeoArc2
Returns
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
chainGeoPolylineArc2The curved chain the segment leaves.
arcGeoArc2The arc the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
chainand landing onarc.
GetShortestLineTo(GeoPolylineArc2, GeoCircle2)
Gets the shortest segment joining a curved chain to a circle.
public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoCircle2 circle)
Parameters
chainGeoPolylineArc2circleGeoCircle2
Returns
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
chainGeoPolylineArc2The curved chain the segment leaves.
circleGeoCircle2The circle the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
chainand landing oncircle.
GetShortestLineTo(GeoPolylineArc2, GeoPolygon2)
Gets the shortest segment joining a curved chain to a polygon.
public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoPolygon2 polygon)
Parameters
chainGeoPolylineArc2polygonGeoPolygon2
Returns
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
chainGeoPolylineArc2The curved chain the segment leaves.
polygonGeoPolygon2The polygon the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
chainand landing onpolygon.
GetShortestLineTo(GeoPolylineArc2, GeoPolyline2)
Gets the shortest segment joining a curved chain to a polyline.
public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoPolyline2 polyline)
Parameters
chainGeoPolylineArc2polylineGeoPolyline2
Returns
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
chainGeoPolylineArc2The curved chain the segment leaves.
polylineGeoPolyline2The polyline the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
chainand landing onpolyline.
GetShortestLineTo(GeoPolylineArc2, GeoPolygonArc2)
Gets the shortest segment joining a curved chain to a curved loop.
public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoPolygonArc2 loop)
Parameters
chainGeoPolylineArc2loopGeoPolygonArc2
Returns
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
chainGeoPolylineArc2The curved chain the segment leaves.
loopGeoPolygonArc2The curved loop the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
chainand landing onloop.
GetShortestLineTo(GeoPolylineArc2, GeoPolylineArc2)
Gets the shortest segment joining a curved chain to another curved chain.
public static GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, GeoPolylineArc2 other)
Parameters
chainGeoPolylineArc2otherGeoPolylineArc2
Returns
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
chainGeoPolylineArc2The curved chain the segment leaves.
otherGeoPolylineArc2The curved chain the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
chainand landing onother.
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
Returns
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
lineGeoLine2The line segment.
pointGeoPoint2The target point.
toleranceToleranceThe 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
polylineGeoPolyline2The polyline.
pointGeoPoint2The target point.
Returns
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
polylineGeoPolyline2The polyline.
pointGeoPoint2The target point.
toleranceToleranceThe 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
Returns
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
line1GeoLine2The first line segment.
line2GeoLine2The second line segment.
toleranceToleranceThe tolerance.
Returns
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
lineGeoLine2The line segment.
circleGeoCircle2The circle.
Returns
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
lineGeoLine2The line segment.
circleGeoCircle2The circle.
toleranceToleranceThe tolerance.
Returns
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
lineGeoLine2The line segment.
rectGeoRectangle2The rectangle.
Returns
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
lineGeoLine2The line segment.
rectGeoRectangle2The rectangle.
toleranceToleranceThe tolerance.
Returns
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
lineGeoLine2The line segment.
polylineGeoPolyline2The polyline.
Returns
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
lineGeoLine2The line segment.
polylineGeoPolyline2The polyline.
toleranceToleranceThe tolerance.
Returns
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
lineGeoLine2The line segment.
polyGeoPolygon2The polygon.
Returns
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
lineGeoLine2The line segment.
polyGeoPolygon2The polygon.
toleranceToleranceThe tolerance.
Returns
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
circleGeoCircle2pointGeoPoint2
Returns
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
circleGeoCircle2The circle.
pointGeoPoint2The target point.
toleranceToleranceThe 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
circleGeoCircle2lineGeoLine2
Returns
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
circleGeoCircle2lineGeoLine2toleranceTolerance
Returns
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
c1GeoCircle2c2GeoCircle2
Returns
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
c1GeoCircle2c2GeoCircle2toleranceTolerance
Returns
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
circleGeoCircle2rectGeoRectangle2
Returns
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
circleGeoCircle2rectGeoRectangle2toleranceTolerance
Returns
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
circleGeoCircle2polylineGeoPolyline2
Returns
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
circleGeoCircle2polylineGeoPolyline2toleranceTolerance
Returns
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
circleGeoCircle2polyGeoPolygon2
Returns
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
circleGeoCircle2polyGeoPolygon2toleranceTolerance
Returns
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
rectGeoRectangle2pointGeoPoint2
Returns
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
rectGeoRectangle2The rectangle.
pointGeoPoint2The target point.
toleranceToleranceThe 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
rectGeoRectangle2lineGeoLine2
Returns
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
rectGeoRectangle2lineGeoLine2toleranceTolerance
Returns
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
rectGeoRectangle2circleGeoCircle2
Returns
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
rectGeoRectangle2circleGeoCircle2toleranceTolerance
Returns
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
r1GeoRectangle2r2GeoRectangle2
Returns
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
r1GeoRectangle2r2GeoRectangle2toleranceTolerance
Returns
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
rectGeoRectangle2polylineGeoPolyline2
Returns
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
rectGeoRectangle2polylineGeoPolyline2toleranceTolerance
Returns
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
rectGeoRectangle2polyGeoPolygon2
Returns
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
rectGeoRectangle2polyGeoPolygon2toleranceTolerance
Returns
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
polylineGeoPolyline2lineGeoLine2
Returns
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
polylineGeoPolyline2lineGeoLine2toleranceTolerance
Returns
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
polylineGeoPolyline2circleGeoCircle2
Returns
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
polylineGeoPolyline2circleGeoCircle2toleranceTolerance
Returns
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
polylineGeoPolyline2rectGeoRectangle2
Returns
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
polylineGeoPolyline2rectGeoRectangle2toleranceTolerance
Returns
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
p1GeoPolyline2p2GeoPolyline2
Returns
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
p1GeoPolyline2p2GeoPolyline2toleranceTolerance
Returns
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
polylineGeoPolyline2polyGeoPolygon2
Returns
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
polylineGeoPolyline2polyGeoPolygon2toleranceTolerance
Returns
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
polyGeoPolygon2pointGeoPoint2
Returns
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
polyGeoPolygon2The polygon.
pointGeoPoint2The target point.
toleranceToleranceThe 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
polyGeoPolygon2lineGeoLine2
Returns
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
polyGeoPolygon2lineGeoLine2toleranceTolerance
Returns
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
polyGeoPolygon2circleGeoCircle2
Returns
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
polyGeoPolygon2circleGeoCircle2toleranceTolerance
Returns
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
polyGeoPolygon2rectGeoRectangle2
Returns
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
polyGeoPolygon2rectGeoRectangle2toleranceTolerance
Returns
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
polyGeoPolygon2polylineGeoPolyline2
Returns
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
polyGeoPolygon2polylineGeoPolyline2toleranceTolerance
Returns
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
p1GeoPolygon2p2GeoPolygon2
Returns
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
p1GeoPolygon2p2GeoPolygon2toleranceTolerance
Returns
GetShortestLineTo(GeoLine2, GeoArc2)
Gets the shortest segment joining a segment to an arc.
public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoArc2 arc)
Parameters
Returns
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
lineGeoLine2The segment the segment leaves.
arcGeoArc2The arc the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
lineand landing onarc.
GetShortestLineTo(GeoLine2, GeoPolygonArc2)
Gets the shortest segment joining a segment to a curved loop.
public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoPolygonArc2 loop)
Parameters
lineGeoLine2loopGeoPolygonArc2
Returns
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
lineGeoLine2The segment the segment leaves.
loopGeoPolygonArc2The curved loop the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
lineand landing onloop.
GetShortestLineTo(GeoLine2, GeoPolylineArc2)
Gets the shortest segment joining a segment to a curved chain.
public static GeoLine2 GetShortestLineTo(GeoLine2 line, GeoPolylineArc2 chain)
Parameters
lineGeoLine2chainGeoPolylineArc2
Returns
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
lineGeoLine2The segment the segment leaves.
chainGeoPolylineArc2The curved chain the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
lineand landing onchain.
GetShortestLineTo(GeoCircle2, GeoArc2)
Gets the shortest segment joining a circle to an arc.
public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoArc2 arc)
Parameters
circleGeoCircle2arcGeoArc2
Returns
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
circleGeoCircle2The circle the segment leaves.
arcGeoArc2The arc the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
circleand landing onarc.
GetShortestLineTo(GeoCircle2, GeoPolygonArc2)
Gets the shortest segment joining a circle to a curved loop.
public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoPolygonArc2 loop)
Parameters
circleGeoCircle2loopGeoPolygonArc2
Returns
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
circleGeoCircle2The circle the segment leaves.
loopGeoPolygonArc2The curved loop the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
circleand landing onloop.
GetShortestLineTo(GeoCircle2, GeoPolylineArc2)
Gets the shortest segment joining a circle to a curved chain.
public static GeoLine2 GetShortestLineTo(GeoCircle2 circle, GeoPolylineArc2 chain)
Parameters
circleGeoCircle2chainGeoPolylineArc2
Returns
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
circleGeoCircle2The circle the segment leaves.
chainGeoPolylineArc2The curved chain the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
circleand landing onchain.
GetShortestLineTo(GeoRectangle2, GeoArc2)
Gets the shortest segment joining a rectangle to an arc.
public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoArc2 arc)
Parameters
rectGeoRectangle2arcGeoArc2
Returns
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
rectGeoRectangle2The rectangle the segment leaves.
arcGeoArc2The arc the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
rectand landing onarc.
GetShortestLineTo(GeoRectangle2, GeoPolygonArc2)
Gets the shortest segment joining a rectangle to a curved loop.
public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoPolygonArc2 loop)
Parameters
rectGeoRectangle2loopGeoPolygonArc2
Returns
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
rectGeoRectangle2The rectangle the segment leaves.
loopGeoPolygonArc2The curved loop the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
rectand landing onloop.
GetShortestLineTo(GeoRectangle2, GeoPolylineArc2)
Gets the shortest segment joining a rectangle to a curved chain.
public static GeoLine2 GetShortestLineTo(GeoRectangle2 rect, GeoPolylineArc2 chain)
Parameters
rectGeoRectangle2chainGeoPolylineArc2
Returns
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
rectGeoRectangle2The rectangle the segment leaves.
chainGeoPolylineArc2The curved chain the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
rectand landing onchain.
GetShortestLineTo(GeoPolygon2, GeoArc2)
Gets the shortest segment joining a polygon to an arc.
public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoArc2 arc)
Parameters
polyGeoPolygon2arcGeoArc2
Returns
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
polyGeoPolygon2The polygon the segment leaves.
arcGeoArc2The arc the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
polyand landing onarc.
GetShortestLineTo(GeoPolygon2, GeoPolygonArc2)
Gets the shortest segment joining a polygon to a curved loop.
public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoPolygonArc2 loop)
Parameters
polyGeoPolygon2loopGeoPolygonArc2
Returns
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
polyGeoPolygon2The polygon the segment leaves.
loopGeoPolygonArc2The curved loop the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
polyand landing onloop.
GetShortestLineTo(GeoPolygon2, GeoPolylineArc2)
Gets the shortest segment joining a polygon to a curved chain.
public static GeoLine2 GetShortestLineTo(GeoPolygon2 poly, GeoPolylineArc2 chain)
Parameters
polyGeoPolygon2chainGeoPolylineArc2
Returns
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
polyGeoPolygon2The polygon the segment leaves.
chainGeoPolylineArc2The curved chain the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
polyand landing onchain.
GetShortestLineTo(GeoPolyline2, GeoArc2)
Gets the shortest segment joining a polyline to an arc.
public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoArc2 arc)
Parameters
polylineGeoPolyline2arcGeoArc2
Returns
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
polylineGeoPolyline2The polyline the segment leaves.
arcGeoArc2The arc the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
polylineand landing onarc.
GetShortestLineTo(GeoPolyline2, GeoPolygonArc2)
Gets the shortest segment joining a polyline to a curved loop.
public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoPolygonArc2 loop)
Parameters
polylineGeoPolyline2loopGeoPolygonArc2
Returns
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
polylineGeoPolyline2The polyline the segment leaves.
loopGeoPolygonArc2The curved loop the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
polylineand landing onloop.
GetShortestLineTo(GeoPolyline2, GeoPolylineArc2)
Gets the shortest segment joining a polyline to a curved chain.
public static GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, GeoPolylineArc2 chain)
Parameters
polylineGeoPolyline2chainGeoPolylineArc2
Returns
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
polylineGeoPolyline2The polyline the segment leaves.
chainGeoPolylineArc2The curved chain the segment lands on.
toleranceToleranceThe tolerance.
Returns
- GeoLine2
A segment leaving
polylineand landing onchain.
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
Returns
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
rayGeoRay2The ray.
pointGeoPoint2The point.
toleranceToleranceThe 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
Returns
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
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
Returns
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
ray1GeoRay2The ray the segment leaves.
ray2GeoRay2The ray the segment lands on.
toleranceToleranceThe 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
Returns
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
Returns
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
rayGeoRay2circleGeoCircle2
Returns
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
rayGeoRay2circleGeoCircle2toleranceTolerance
Returns
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
rayGeoRay2polyGeoPolygon2
Returns
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
rayGeoRay2polyGeoPolygon2toleranceTolerance
Returns
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
rayGeoRay2loopGeoPolygonArc2
Returns
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
rayGeoRay2loopGeoPolygonArc2toleranceTolerance
Returns
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
rayGeoRay2polylineGeoPolyline2
Returns
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
rayGeoRay2polylineGeoPolyline2toleranceTolerance
Returns
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
rayGeoRay2chainGeoPolylineArc2
Returns
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
rayGeoRay2chainGeoPolylineArc2toleranceTolerance
Returns
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
rayGeoRay2rectGeoRectangle2
Returns
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
rayGeoRay2rectGeoRectangle2toleranceTolerance
Returns
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
circleGeoCircle2rayGeoRay2
Returns
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
circleGeoCircle2rayGeoRay2toleranceTolerance
Returns
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
polyGeoPolygon2rayGeoRay2
Returns
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
polyGeoPolygon2rayGeoRay2toleranceTolerance
Returns
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
loopGeoPolygonArc2rayGeoRay2
Returns
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
loopGeoPolygonArc2rayGeoRay2toleranceTolerance
Returns
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
polylineGeoPolyline2rayGeoRay2
Returns
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
polylineGeoPolyline2rayGeoRay2toleranceTolerance
Returns
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
chainGeoPolylineArc2rayGeoRay2
Returns
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
chainGeoPolylineArc2rayGeoRay2toleranceTolerance
Returns
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
rectGeoRectangle2rayGeoRay2
Returns
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
rectGeoRectangle2rayGeoRay2toleranceTolerance