public static float Distance(IndexPosition a, IndexPosition b)
 {
     return((float)Math.Sqrt(
                Math.Pow(b.X - a.X, 2) +
                Math.Pow(b.Y - a.Y, 2) +
                Math.Pow(b.Z - a.Z, 2)
                ));
 }
 public override bool Equals(object obj)
 {
     if (obj is IndexPosition)
     {
         IndexPosition obji = (IndexPosition)obj;
         return(obji == this);
     }
     else
     {
         return(false);
     }
 }