示例#1
0
            public int CompareTo(SlopedLocation other)
            {
                int result = Angle.CompareTo(other.Angle);

                if (result == 0)
                {
                    return(ManhattanDistance.CompareTo(other.ManhattanDistance));
                }
                return(result);
            }
示例#2
0
 public int CompareTo(object obj)
 {
     return(ManhattanDistance.CompareTo(((GraphVertex)obj).ManhattanDistance));
 }