David Sharp wrote: > Is the function only possible between two points ? Yes. The calculations for line-point distance on a ellipse are extreamly complex - just point-point distance calculation are several 100 lines... dave