>>335
(2r -w) π = 4(x-r)
(2π+4)r = wπ+4x
r = (wπ+4x)/(2π+4)