예제 #1
0
 //相等则返回true
 public static bool Compare(Vertex a, Vertex b)
 {
     return a.x == b.x && a.y == b.y;
 }
예제 #2
0
 //��뾶
 private double dis_2(Vertex from, Vertex to)
 {
     return ((from.x - to.x) * (from.x - to.x) + (from.y - to.y) * (from.y - to.y));
 }