def translate(old, new, points):
    diff = new - old
    points[:] = points + diff
    return points
Translate function takes 3 arguments the old position, new
dataset/ETHPy150Open enthought/mayavi/tvtk/tools/visual.py/translate