This is just a small demo testing ray vs circle intersection using SFML. Here's a picture that helps understand how the computations are done.