setCameraPosition method

  1. @override
Future setCameraPosition(
  1. double x,
  2. double y,
  3. double z
)
override

Set the camera position in world space. Note this is not persistent - any viewport navigation will reset the camera transform.

Implementation

@override
Future setCameraPosition(double x, double y, double z) async {
  _module.ccall(
      "set_camera_position",
      "void",
      ["void*".toJS, "float".toJS, "float".toJS, "float".toJS].toJS,
      [_viewer!, x.toJS, y.toJS, z.toJS].toJS,
      null);
}