分类: Java
2012-03-15 17:21:58
创建一个Java triangle Area.
Path2D.Double triangle=new Path2D.Double();
triangle.moveTo(x+w, y);
triangle.lineTo(x+w+30, y+h/2);
triangle.lineTo(x+w, y+h);
triangle.closePath();
Area aRec = new Area(triangle);
triangle.reset();