public ShapeConstraint Inter(ShapeConstraint 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 ShapeConstraint(-2, 63)); } return(new ShapeConstraint(Math.Max(LineAttribute, c2.LineAttribute), BlockedMask | c2.BlockedMask)); }
public ShapeConstraint(ShapeConstraint copy) : base(copy.LineAttribute, copy.BlockedMask) { }