x(θ) = (R-r)cos(θ) + d·cos((R-r)θ/r)
y(θ) = (R-r)sin(θ) - d·sin((R-r)θ/r)