def METHOD_NAME(self, pos, origin):
    deltaX = pos.x() - origin.x()
    deltaY = pos.y() - origin.y()
    # go into the first quadrant to simplify our study
    aDeltaX = abs(deltaX)
    aDeltaY = abs(deltaY)
    # diagonal incr.
    # if aDeltaY >= aDeltaX * 2:
    #     pos.setX(origin.x())
    # elif aDeltaY > aDeltaX / 2:
    #     avg = (aDeltaX + aDeltaY) / 2
    #     pos.setX(origin.x() + copysign(avg, deltaX))
    #     pos.setY(origin.y() + copysign(avg, deltaY))
    if aDeltaY >= aDeltaX:
        pos.setX(origin.x())
    else:
        pos.setY(origin.y())
    return pos