getCameraProjectionMatrix method

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

Get the camera's projection matrix. See Camera.h for more details.

Implementation

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