Make regions Cloneable

This commit is contained in:
aumgn
2012-03-20 15:14:41 +01:00
committed by zml2008
parent 56a8574129
commit 842c469285
6 changed files with 29 additions and 1 deletions

View File

@ -519,4 +519,10 @@ public class Polygonal2DRegion extends AbstractRegion implements FlatRegion {
sb.append(" * (" + minY + " - " + maxY + ")");
return sb.toString();
}
public Polygonal2DRegion clone() {
Polygonal2DRegion clone = (Polygonal2DRegion) super.clone();
clone.points = new ArrayList<BlockVector2D>(points);
return clone;
}
}