Commit ec5e120e authored by ronan's avatar ronan
Browse files

Add constructor sRectangle

parent 674703b5
Pipeline #2264 passed with stage
in 53 seconds
...@@ -12,14 +12,14 @@ public class sRectangle extends Form ...@@ -12,14 +12,14 @@ public class sRectangle extends Form
public sRectangle() public sRectangle()
{ {
super(4); super(4);
this.length = new Vector2D(); length = new Vector2D();
set(0, 0, 0, 0); set(0, 0, 0, 0);
} }
public sRectangle(sRectangle rec) public sRectangle(sRectangle rec)
{ {
super(rec); super(rec);
this.length.set(rec.getLength()); length = new Vector2D(rec.getLength());
} }
public static sRectangle createSRectangleLeft(Vector2D left, Vector2D length) public static sRectangle createSRectangleLeft(Vector2D left, Vector2D length)
......
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