示例#1
0
 public override bool Equals(Object obj)
 {
     if ((obj == null) || !this.GetType().Equals(obj.GetType()))
     {
         return(false);
     }
     else
     {
         Punt p = (Punt)obj;
         return((X == p.X) && (Y == p.Y));
     }
 }
示例#2
0
 public Knoop()
 {
     Punt = new Punt();
 }
示例#3
0
 public Knoop(int knoopId, Punt punt)
 {
     Id   = knoopId;
     Punt = punt;
 }
示例#4
0
 private static double getLengthBetweenPoints(Punt een, Punt ander)
 {
     return(Math.Sqrt(Math.Pow(een.X - ander.X, 2) + Math.Pow(een.Y - ander.Y, 2)));
 }