Beispiel #1
0
 public Coordinate4D(Coordinate4D c)
 {
     x = c.x;
     y = c.y;
     z = c.z;
     t = c.t;
 }
Beispiel #2
0
 public bool Equals(Coordinate4D obj)
 {
     return(obj != null && obj.x == x && obj.y == y && obj.z == z && obj.t == t);
 }
Beispiel #3
0
 public int GetManhattan(Coordinate4D c, ref Dictionary <Coordinate4D, Dictionary <Coordinate4D, int> > Distances)
 {
     return(Distances[this][c]);
 }
Beispiel #4
0
 public int MakeManhattan(Coordinate4D c)
 {
     return(Math.Abs(x - c.x) + Math.Abs(y - c.y) + Math.Abs(z - c.z) + Math.Abs(t - c.t));
 }