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); }
public int calculateDistanceObject(IRouteObject anObject, Coordinate actualCoordinate) { return(anObject.GetCoordinates().GetDistanceOf(actualCoordinate)); }