saveState method

dynamic saveState()

Save the current state of the control. This can later be recover with .reset

Implementation

saveState() {
  _cameraMatrixState0.copy(camera.matrix);
  _gizmoMatrixState0.copy(_gizmos.matrix);
  _nearPos = camera.near;
  _farPos = camera.far;
  _zoom0 = camera.zoom;
  _up0.copy(camera.up);

  if (camera is PerspectiveCamera) {
    _fov0 = camera.fov;
  }
}