Commit 4f518de1 authored by Stefan Schuhbaeck's avatar Stefan Schuhbaeck
Browse files

add new constructor to VRectangle

parent 242a9e68
......@@ -24,6 +24,10 @@ public class VRectangle extends Rectangle2D.Double implements VShape {
public VRectangle(final Rectangle2D rectangle) {
this(rectangle.getX(), rectangle.getY(), rectangle.getWidth(), rectangle.getHeight());
public VRectangle(final Rectangle2D.Double rectangle) {
this(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment