Open Rails

WorldLocation.Within Method

[This is preliminary documentation and subject to change.]

Check whether location1 and location2 are within given distance from each other

public static bool Within(
   WorldLocation location1,
   WorldLocation location2,
   float distance
);

Parameters

location1
first location
location2
second location
distance
distance defining the boundary between 'within' and 'outside'

See Also

WorldLocation Class | ORTS.Common Namespace