@ -29,6 +29,14 @@ public class Vector2 {
);
}
public boolean isWithin(Vector2 area) {
return this.x < area.x &&
this.y < area.y &&
this.x >= 0 &&
this.y >= 0
;
public Vector2 Clone() {
return new Vector2(this.x, this.y);