예제 #1
0
 private bool IsTheSameRoute(List <IRouteObject> list)
 {
     for (int i = 0; i < list.Count; i++)
     {
         IRouteObject item = list.ElementAt(i);
         if (!AreSameType(item, this.theRoute.ElementAt(i)))
         {
             return(false);
         }
         if (!item.GetCoordinates().Equals(this.theRoute.ElementAt(i).GetCoordinates()))
         {
             return(false);
         }
     }
     return(true);
 }
예제 #2
0
 public int calculateDistanceObject(IRouteObject anObject, Coordinate actualCoordinate)
 {
     return(anObject.GetCoordinates().GetDistanceOf(actualCoordinate));
 }