'Declaration Public Overloads Function FindClosestVertex( _ ByVal mousePos As Point, _ ByVal maxDistance As Double, _ ByRef closestIndex As Integer _ ) As Integer
public int FindClosestVertex( Point mousePos, double maxDistance, out int closestIndex )
Parameters
- mousePos
- Mouse position (zero on top)
- maxDistance
- Limit the search to points at this distance in pixels from mouse cursor position
- closestIndex
- The closest vertex index
Return Value
The entity index if the closest vertex is nearer than maxDistance, -1 otherwise.