Ejemplo n.º 1
0
 public static Distance GetDistanceFor(this Road road, MovementDirection direction)
 => road.GetStartingPointFor(direction).DistanceToOppositeLocation;
Ejemplo n.º 2
0
 public static RoadPoint GetArrivalPointFor(this Road road, MovementDirection direction)
 => road.GetStartingPointFor(direction.Flip());