Calculating the outer tangent of two circles using this solution on Stackoverflow by Markus Jarderot.