Beispiel #1
0
 public mcCellRelations(mcCellRelations obj)
 {
     nR  = obj.nR;
     nL  = obj.nL;
     nT  = obj.nT;
     nD  = obj.nD;
     nTR = obj.nTR;
     nTL = obj.nTL;
     nDR = obj.nDR;
     nDL = obj.nDL;
     MB  = obj.MB;
 }
Beispiel #2
0
 public bool IsAllIdentity(List <mcCellRelations> mcs, mcCellRelations mcCell)
 {
     if (mcs != null && mcCell != null)
     {
         foreach (var item in mcs)
         {
             if (item.SN != mcCell.SN)
             {
                 return(false);
             }
         }
     }
     return(true);
 }
Beispiel #3
0
        public bool IsMyNeighbour(mcCellRelations obj)
        {
            if (obj != null)
            {
                int sn = obj.SN;

                if (
                    rSn == sn ||
                    lSn == sn ||
                    tSn == sn ||
                    dSn == sn ||
                    trSn == sn ||
                    tlSn == sn ||
                    drSn == sn ||
                    dlSn == sn)
                {
                    return(true);
                }
            }
            return(false);
        }
Beispiel #4
0
 public mcCell(double X = 0, double Y = 0)
 {
     _celRel = new mcCellRelations(); _coord = new Point(X, Y);
 }