edi: Calculates euclidean intermediate between two points.
Description
edi simply calculates coordinates of a points at the relative
distance r on the pt1-pt2 defined by their (x; y) coordinates.
This function is used internally but may be of interest for other analyses.