Exemplo n.º 1
0
            public override Rectangle2D createUnion(Rectangle2D r)
            {
                Rectangle2D dest = new Rectangle2D.Double();

                Rectangle2D.union(this, r, dest);
                return(dest);
            }
Exemplo n.º 2
0
            public override Rectangle2D createIntersection(Rectangle2D r)
            {
                Rectangle2D dst = new Rectangle2D.Double();

                Rectangle2D.intersect(this, r, dst);
                return(dst);
            }
Exemplo n.º 3
0
            public override Rectangle2D createUnion(Rectangle2D r)
            {
                Rectangle2D dst;

                if (r is Double)
                {
                    dst = new Rectangle2D.Double();
                }
                else
                {
                    dst = new Rectangle2D.Float();
                }
                Rectangle2D.union(this, r, dst);
                return(dst);
            }
 public override Rectangle2D createUnion(Rectangle2D r)
 {
     Rectangle2D dst;
     if (r is Double)
     {
         dst = new Rectangle2D.Double();
     }
     else
     {
         dst = new Rectangle2D.Float();
     }
     Rectangle2D.union(this, r, dst);
     return dst;
 }
 public override Rectangle2D createUnion(Rectangle2D r)
 {
     Rectangle2D dest = new Rectangle2D.Double();
     Rectangle2D.union(this, r, dest);
     return dest;
 }
 public override Rectangle2D createIntersection(Rectangle2D r)
 {
     Rectangle2D dst = new Rectangle2D.Double();
     Rectangle2D.intersect(this, r, dst);
     return dst;
 }