def zoomToDisplayPoint(displayPoint, boundsRadius=0.5, view=None):

    pickedPoint = pickPoint(displayPoint, getSegmentationView(), obj='pointcloud snapshot')
    if pickedPoint is None:
        return

    view = view or app.getCurrentRenderView()

    worldPt1, worldPt2 = getRayFromDisplayPoint(getSegmentationView(), displayPoint)

    diagonal = np.array([boundsRadius, boundsRadius, boundsRadius])
    bounds = np.hstack([diagonal - pickedPoint, pickedPoint + diagonal])
    bounds = [bounds[0], bounds[3], bounds[1], bounds[4], bounds[2], bounds[5]]
    view.renderer().ResetCamera(bounds)
    view.camera().SetFocalPoint(pickedPoint)
    view.render()
dataset/ETHPy150Open RobotLocomotion/director/src/python/director/segmentation.py/zoomToDisplayPoint/swapped operands of `-`