Rotating a polygon in Java
问题 The program I am writing draws multiple stars on the screen and gives them random directions and speeds. The stars will bounce off the edges of the panel and stay inside. I need to have the stars rotating as they are moving. I have tried so many things and I cannot figure it out. Below is the code I use to draw the stars and move them. Additional Information: -the stars are in a collection called "stars" -there are two classes that I wrote, "Star" and "MyJPanel" Set the points: (in Star class