## ShortestPathTo

**Syntax**

ShortestPathTo(MapWinGeoProc.Topology2D.Segment LineSegment)

**Summary**

This calculates the shortest pathway between two segments and returns a segment that represents the contact between the two. The Startpoint is the point on this segment, and the Endpoint is the point on LineSegment

**Parameters**

LineSegment |
The line segment to find the distance too |

**Returns**

A Line Segment from the two closest points from each segment.

Visual Basic Net 2005 Example
Implementation Code

Visual C# 2005 Example Implementation
Code

Back
to Segment