orbitBy method

DVSceneView orbitBy({
  1. double yaw = 0,
  2. double pitch = 0,
  3. double zoom = 1,
})

This orbit turned by yaw and pitch radians and moved zoom times closer, clamped so it never passes the pole or its near plane.

Implementation

DVSceneView orbitBy({double yaw = 0, double pitch = 0, double zoom = 1}) =>
    DVSceneView.orbit(
      target: target,
      distance: zoom <= 0 ? distance : distance / zoom,
      yaw: this.yaw + yaw,
      pitch: this.pitch + pitch,
      fovYDegrees: fovYDegrees,
      near: near,
      far: far,
    );