public int CompareTo(SlopedLocation other) { int result = Angle.CompareTo(other.Angle); if (result == 0) { return(ManhattanDistance.CompareTo(other.ManhattanDistance)); } return(result); }
public int CompareTo(object obj) { return(ManhattanDistance.CompareTo(((GraphVertex)obj).ManhattanDistance)); }