(self, zoom_factor)
Zooms the camera in/out.

    Args:
      zoom_factor: A floating point value, by how much to zoom the camera.
        Positive values zoom the camera in, negative values zoom it out.
Zooms the camera in/out.
Zooms the camera in / out .
def zoom(self, zoom_factor):
    """Zooms the camera in/out.

    Args:
      zoom_factor: A floating point value, by how much to zoom the camera.
        Positive values zoom the camera in, negative values zoom it out.
    """
    if self._active:
      offset = [0, _SCROLL_SPEED_FACTOR * zoom_factor * -1.]
      self._camera.move(enums.mjtMouse.mjMOUSE_ZOOM, offset)
def zoom ( self , zoom_factor ) : if self . _active : offset = [ 0 , _SCROLL_SPEED_FACTOR * zoom_factor * - 1. ] self . _camera . move ( enums . mjtMouse . mjMOUSE_ZOOM , offset )