there is java code to do this:

https://github.com/Lanchon/circle-circle-intersection...