How to make sweep work with rotation?

Have you looked at the twinStickShooter c++ classes?