public void translate
(int diffX, int diffY)
{ x =
x + diffX;
y = y + diffY;
}
public boolean
contains (int px, int py)
{ return
condition for point inside
}
private int x;
// private chosen to match styleguide
private int
y;
private int
height;
private int
width;
}