Circle-Rectangle Collision

I'm having trouble writing a decent collision detection algorithm for a Breakout clone. Determining the ball's position when the collision occurs seems even more difficult. If anyone has written something similar, I would appreciate any help I can get.
This article changed my life. There is a section for circle vs rect.
www.wildbunny.co.uk/blog/2011/04/20/collision-detection-for-dummies/
Topic archived. No new replies allowed.