setCameraFocalLength method

  1. @override
Future setCameraFocalLength(
  1. double focalLength
)
override

Sets the focal length of the camera. Default value is 28.0.

Implementation

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