Returns the x/y-position for a distance d in n possible values
d2xy(n, d)
n
First value
d
Second value
Vector of x y