GetClosestPtOnRotatedEllipse

function GetClosestPtOnRotatedEllipse(const ellipseRect: TRectD; ellipseRotation: double; const pt: TPointD): TPointD;

Returns the point on the defined ellipse that's closest to pt.
Note: ellipseRotation defines the rotation angle of the ellipse in radians. (Angle parameters and properties must always be specified in radians.)