## ClosestPointOn

**Syntax**

Topology2D.Point ClosestPointOn(MapWinGeoProc.Topology2D.Segment Seg)

**Summary**

In the 2D case, the shortest path to the specified segment is on one of the segments here. This determines the shortest path and picks shortest distance. Then it returns the point on the specified segment that is closest to this extent.

**Parameters**

Seg |
A Segment to find the closest point on. |

**Returns**

Topology2D.Point specifying the closest point on the specified segment. This returns null if there is an intersection.

Visual Basic Net 2005 Example
Implementation Code

Visual C# 2005 Example Implementation
Code

Back to
ClosestPointOn