setCameraFocusDistance method

  1. @override
Future setCameraFocusDistance(
  1. double focusDistance
)
override

Sets the focus distance for the camera.

Implementation

@override
Future setCameraFocusDistance(double focusDistance) async {
  _module.ccall(
      "set_camera_focus_distance",
      "void",
      ["void*".toJS, "float".toJS].toJS,
      [_viewer!, focusDistance.toJS].toJS,
      null);
}