rectangle rotation for collision detection

Maybe this similar thread will help you: Collision detection with rotating crosses (or similar)

Recangles can’t be rotated, but you can calculate where your point would be after rotation and use those points for collision.