(int newx, int newy)
| 171 | } |
| 172 | |
| 173 | public void add(int newx, int newy) { |
| 174 | int x1 = Math.min(this.x, newx); |
| 175 | int x2 = Math.max(this.x + this.width, newx); |
| 176 | int y1 = Math.min(this.y, newy); |
| 177 | int y2 = Math.max(this.y + this.height, newy); |
| 178 | this.x = x1; |
| 179 | this.y = y1; |
| 180 | this.width = x2 - x1; |
| 181 | this.height = y2 - y1; |
| 182 | } |
| 183 | |
| 184 | public void grow(int h, int v) { |
| 185 | this.x -= h; |
no outgoing calls
no test coverage detected