How to find external tangents between two closed planar curves (not circles)?

Yes i know it didn’t work with curves like that even we use regular components or c#
the method of David with convex hull work in this case