def move_landmarks(landmarks, new_origin):
    """
    Moves all landmarks according to new origin.
    """
    oi, oj = new_origin
    return np.array([[lm[0] - oi, lm[1] - oj] for lm in landmarks])
dataset/ETHPy150Open dfdx/masque/masque/utils.py/move_landmarks/original