GoXam for WPF v3
FindClosestSegment Method
Collapse All
Expand All
Language Filter: All
Language Filter: Multiple
Language Filter: Visual Basic
Language Filter: C#
C#
View with Navigation Tools
Northwoods.GoXam Namespace
>
Route Class
: FindClosestSegment Method
the
Point
, in model coordinates
Find the index of the segment that is closest to a given point.
Syntax
C#
public
int
FindClosestSegment(
Point
q
)
Parameters
q
the
Point
, in model coordinates
Return Value
The index of the segment, from zero to the number of points minus 2
Remarks
This assumes the route only has straight line segments. It ignores any jump-overs or jump-gaps.
See Also
Reference
Route Class
Route Members