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; }
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); }
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); }
public mcCell(double X = 0, double Y = 0) { _celRel = new mcCellRelations(); _coord = new Point(X, Y); }