Collosion detection for rotated bitmaps on Android
===

I need pixel-perfect collosion detection for my Android game. I've written some code to detect collosion with "normal" bitmaps (not rotated); works fine. However, I dont get it for rotated bitmaps. Unfortunately, Java doesnt have a class for rotated rectangles ,so I implemted one myself. It holds the position of the four corners in relation to the screen and discripes the exact location/layer of its bitmap; called "itemSurface". My plan for solving the detection was to:

-detect intersection of the different itemSurfaces

-calculating the overlapping area

-set this areas in relation to its superior itemSurface/bitmap

-compare each single pixels with the corresponding pixel of the other bitmap

Well, Im having trouble with the first one and the second one. Does anybody has an idea or got some code? Maybe there is already code in Java/Android libs and I just didnt find it.

Thanks already Petro