rtor.shift(pts,rect)
pts
is used.pts
, but after application of a random toroidal
shift along the x and y axes.rect
is assumed connected at its top and bottom edges, and at its left and
right sides. A random shift is applied to the
points and the resulting set of points returned.tor.shift