Open Rails

MSTSItems.findSegmentFromMouse Method

[This is preliminary documentation and subject to change.]

Search a segment from the coordinate of the mouse.

public GlobalItem findSegmentFromMouse(
   PointF pt,
   double snapSize
);

Parameters

pt
The real coordinate pointed by the mouse
snapSize
A circle in wich the segment must cross

Return Value

GlobalItem but for now, only a TrackSegment

See Also

MSTSItems Class | Orts.Formats.OR Namespace