public ColorConstraint Inter(ColorConstraint c2) { // Either one is blocked or different lined consraints -> blocked if (LineAttribute == -2 || c2.LineAttribute == -2 || (LineAttribute >= 0 && c2.LineAttribute >= 0 && LineAttribute != c2.LineAttribute)) { return(new ColorConstraint(-2, 63)); } return(new ColorConstraint(Math.Max(LineAttribute, c2.LineAttribute), BlockedMask | c2.BlockedMask)); }
public ColorConstraint(ColorConstraint copy) : base(copy.LineAttribute, copy.BlockedMask) { }