Example #1
0
 public IndexDirection2(IndexDirection2 t)
 {
     x = t.X;
     y = t.Y;
     X = x;
     Y = y;
 }
Example #2
0
        public IndexDirection2(DirectionEnum d)
        {
            IndexDirection2 n = FromDirectionEnum(d);

            x = n.X;
            y = n.Y;
            X = x;
            Y = y;
        }
Example #3
0
 public override bool Equals(object ob)
 {
     if (ob is IndexDirection2)
     {
         IndexDirection2 t = (IndexDirection2)ob;
         return((x == t.x) && (y == t.y));
     }
     return(false);
 }
Example #4
0
 public bool Equals(IndexDirection2 t)
 {
     return((x == t.x) && (y == t.y));
 }
Example #5
0
 public Index2(IndexDirection2 t)
 {
     x = t.X;
     y = t.Y;
 }