コード例 #1
0
        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));
        }
コード例 #2
0
 public ShapeConstraint(ShapeConstraint copy) : base(copy.LineAttribute, copy.BlockedMask)
 {
 }