getCameraModelMatrix method

  1. @override
Future<Matrix4> getCameraModelMatrix()
override

Get the camera's model matrix.

Implementation

@override
Future<Matrix4> getCameraModelMatrix() async {
  final ptr = _module._malloc(16 * 8) as JSNumber;
  _module.ccall("get_camera_model_matrix", "void",
      ["void*".toJS, "double*".toJS].toJS, [_viewer!, ptr].toJS, null);
  final matrix = _matrixFromPtr(ptr);
  _module._free(ptr);
  return matrix;
}