The stack trace has nothing to do with the drawRotatedRect method you posted. See your drawRobotPaint...line 511 in the BattleView class to be exact
Type: Posts; User: copeg
The stack trace has nothing to do with the drawRotatedRect method you posted. See your drawRobotPaint...line 511 in the BattleView class to be exact
Unless you are required to write the math yourself, an easier way would be to use the methods available in the Graphics2D or AffineTransform class - namely rotate and translate (its always a good...