Method GetShortestLineTo
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetShortestLineTo(GeoLine2)
Gets the shortest segment joining the edge to a straight segment.
public GeoLine2 GetShortestLineTo(GeoLine2 line)
Parameters
lineGeoLine2
Returns
GetShortestLineTo(GeoLine2, Tolerance)
Gets the shortest segment joining the edge to a straight segment, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoLine2 line, Tolerance tolerance)
Parameters
Returns
- GeoLine2
A segment leaving this edge and landing on
line, of no length at all where the two cross.
GetShortestLineTo(GeoEdge2)
Gets the shortest segment joining the edge to another edge.
public GeoLine2 GetShortestLineTo(GeoEdge2 other)
Parameters
otherGeoEdge2
Returns
GetShortestLineTo(GeoEdge2, Tolerance)
Gets the shortest segment joining the edge to another edge, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoEdge2 other, Tolerance tolerance)
Parameters
Returns
Remarks
Four cases, as with the distance: segment to segment, segment to arc either way round, and arc to arc. Where the arc is the second of the two the answer is turned round, so the segment always leaves this edge.
GetShortestLineTo(GeoCircle2)
Gets the shortest segment joining the edge to a circle.
public GeoLine2 GetShortestLineTo(GeoCircle2 circle)
Parameters
circleGeoCircle2
Returns
GetShortestLineTo(GeoCircle2, Tolerance)
Gets the shortest segment joining the edge to a circle, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoCircle2 circle, Tolerance tolerance)
Parameters
circleGeoCircle2toleranceTolerance
Returns
GetShortestLineTo(GeoArc2)
Gets the shortest segment joining the edge to an arc.
public GeoLine2 GetShortestLineTo(GeoArc2 arc)
Parameters
arcGeoArc2
Returns
GetShortestLineTo(GeoArc2, Tolerance)
Gets the shortest segment joining the edge to an arc, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoArc2 arc, Tolerance tolerance)
Parameters
Returns
Remarks
The arc is taken as it is rather than as an edge, so one sweeping a whole turn is joined to as well.
GetShortestLineTo(GeoFace2)
Gets the shortest segment leaving this edge and landing on a face.
public GeoLine2 GetShortestLineTo(GeoFace2 face)
Parameters
faceGeoFace2
Returns
GetShortestLineTo(GeoFace2, Tolerance)
Gets the shortest segment leaving this edge and landing on a face, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoFace2 face, Tolerance tolerance)
Parameters
Returns
GetShortestLineTo(GeoPolygon2)
Gets the shortest segment leaving this edge and landing on a polygon.
public GeoLine2 GetShortestLineTo(GeoPolygon2 poly)
Parameters
polyGeoPolygon2
Returns
GetShortestLineTo(GeoPolygon2, Tolerance)
Gets the shortest segment leaving this edge and landing on a polygon, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoPolygon2 poly, Tolerance tolerance)
Parameters
polyGeoPolygon2toleranceTolerance
Returns
GetShortestLineTo(GeoPolygonArc2)
Gets the shortest segment leaving this edge and landing on a curved loop.
public GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop)
Parameters
loopGeoPolygonArc2
Returns
GetShortestLineTo(GeoPolygonArc2, Tolerance)
Gets the shortest segment leaving this edge and landing on a curved loop, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, Tolerance tolerance)
Parameters
loopGeoPolygonArc2toleranceTolerance
Returns
GetShortestLineTo(GeoPolyline2)
Gets the shortest segment leaving this edge and landing on a polyline.
public GeoLine2 GetShortestLineTo(GeoPolyline2 polyline)
Parameters
polylineGeoPolyline2
Returns
GetShortestLineTo(GeoPolyline2, Tolerance)
Gets the shortest segment leaving this edge and landing on a polyline, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, Tolerance tolerance)
Parameters
polylineGeoPolyline2toleranceTolerance
Returns
GetShortestLineTo(GeoPolylineArc2)
Gets the shortest segment leaving this edge and landing on a curved chain.
public GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain)
Parameters
chainGeoPolylineArc2
Returns
GetShortestLineTo(GeoPolylineArc2, Tolerance)
Gets the shortest segment leaving this edge and landing on a curved chain, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, Tolerance tolerance)
Parameters
chainGeoPolylineArc2toleranceTolerance
Returns
GetShortestLineTo(GeoRectangle2)
Gets the shortest segment leaving this edge and landing on a rectangle.
public GeoLine2 GetShortestLineTo(GeoRectangle2 rect)
Parameters
rectGeoRectangle2
Returns
GetShortestLineTo(GeoRectangle2, Tolerance)
Gets the shortest segment leaving this edge and landing on a rectangle, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoRectangle2 rect, Tolerance tolerance)
Parameters
rectGeoRectangle2toleranceTolerance
Returns
GetShortestLineTo(GeoTriangle2)
Gets the shortest segment leaving this edge and landing on a triangle, using the default tolerance.
public GeoLine2 GetShortestLineTo(GeoTriangle2 triangle)
Parameters
triangleGeoTriangle2
Returns
GetShortestLineTo(GeoTriangle2, Tolerance)
Gets the shortest segment leaving this edge and landing on a triangle, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, Tolerance tolerance)
Parameters
triangleGeoTriangle2toleranceTolerance