Returns the segment number in the Points collection closest to the input point.
object.NearestSegment ( pIPoint ) |
- pIPoint
- Required. A Point object that represents the point to search from.
Long
Each segment represents a straight line consisting of two points in the Points collection.
The segment number returned is 1-based. So for segment N, the indices of the two points in the Points collection are N, N+1.
The segment number returned is 1-based. So for segment N, the indices of the two points in the Points collection are N, N+1.