e658. 组合图形

Area shape = new Area(shape1);
    shape.add(new Area(shape2));
    shape.subtract(new Area(shape3));
    shape.intersect(new Area(shape4));
    shape.exclusiveOr(new Area(shape5));

 

Related Examples
posted @ 2018-09-02 21:36  borter  阅读(145)  评论(0编辑  收藏  举报