If p1 follows p0, then p1 gets its coordinates from the following set of equations:
Calculate the length difference
, and how much to add with given radius, r {\displaystyle {\mathbf {r}}}
, where
p 1 x 1 = p 1 x + d x {\displaystyle p1_{x}^{1}=p1_{x}+dx}
p 1 y 1 = p 1 y + d y {\displaystyle p1_{y}^{1}=p1_{y}+dy}
are the new points.
This mathematics-related article is a stub. You can help Wikipedia by expanding it.