Search:

Type: Posts; User: copeg

Search: Search took 0.10 seconds.

  1. Re: Writing a method to draw a rotatable rectangle using Graphics2D

    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
  2. Re: Writing a method to draw a rotatable rectangle using Graphics2D

    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...
Results 1 to 2 of 2