I have some objects which I draw onto a Canvas as part of a SurfaceView. I want to be able to rotate these programmatically, e.g. myParticle.setRotation(90);
Here's my (simplified) code to draw the Particle at the moment:
public class Particle {
public void draw(Canvas canvas){
image.setBounds((int)(xPos), (int)(yPos), (int)(xPos+radius), (int)(yPos+radius));
image.draw(canvas);
}
}