GetLineEllipseIntersects

function GetLineEllipseIntersects(const ellipseRect: TRect; var linePt1, linePt2: TPointD): Boolean;

Gets the intersection of an ellipse and a line. The function result = true when the line either touches tangentially or passes through the ellipse. If the line touches tangentially, the coordinates returned in linePt1 and linePt2 will match.