Spotlightpublic class Spotlight extends Object
Fields Summary |
---|
protected Ellipse2D$Double | spot | protected Rectangle2D$Double | bounds |
Constructors Summary |
---|
public Spotlight(int x, int y, int w, int h)
this.spot = new Ellipse2D.Double(x, y, w, h);
|
Methods Summary |
---|
public double | getArea()
return Math.PI * spot.getWidth() * spot.getHeight() / 4.0;
| public java.awt.geom.Ellipse2D | getSpot()
return spot;
|
|