1 | Rotate a polygon about the top left-hand corner of its bounding box: public DrawablePolygon rotate( double theta ) { Rectangle r = this.getBounds(); Point p = new Point( r.x, r.y ); return this.rotate( theta, p ); } |
2 | The above refers to java.awt.Rectangle, not our Rectangle class! |