public class Rectangle
extends java.lang.Object
Constructor and Description |
---|
Rectangle(int x,
int y,
int w,
int h)
Rectangle given a position (x,y) and dimensions (w,h).
|
Modifier and Type | Method and Description |
---|---|
int |
area() |
int |
height() |
int |
width() |
int |
x() |
int |
y() |