메소드 | 설명 | |
---|---|---|
UpdateRouteStops ( |
Recalculate which routes the stops belong to, and the order. Call after any change to route or stops
|
|
UpdateStopsForAllRoutes ( ) : void | ||
UpdateStopsForRoute ( |
메소드 | 설명 | |
---|---|---|
AngleBetween3Points ( Coordinate A, Coordinate B, Coordinate C ) : double |
Find the angle between stop and A-B segment. Used to ensure that stop is only used if it's on the right side of the route
|
|
FindDistanceToSegment ( Coordinate stopPosition, Coordinate p1, Coordinate p2, Coordinate &closest ) : double | ||
RemovePreviousRouteStops ( |
public UpdateRouteStops ( |
||
db | ||
routeID | int | Route being recalculated |
shapePoints | List |
|
stops | List |
|
리턴 | void |
public UpdateStopsForRoute ( |
||
db | ||
routeID | int | |
리턴 | void |