Capsule intersection

Hello,

I need a method that returns the intersection points of two capsule shapes (actually, two lines with a radius):

Could a simple line-line intersection method work?

Thanks already!