Source: http://pierrelux.net/documents/cours/4/triangle_rectangle_distance_cercle.PDF.pdf