getCameraCullingProjectionMatrix method

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

Implementation

@override
Future<Matrix4> getCameraCullingProjectionMatrix() async {
  if (_viewer == null) {
    throw Exception("No viewer available");
  }
  throw Exception(
      "WARNING: getCameraProjectionMatrix and getCameraCullingProjectionMatrix are not reliable. Consider these broken");
  var arrayPtr = get_camera_culling_projection_matrix(_viewer!);
  var doubleList = arrayPtr.asTypedList(16);
  var projectionMatrix = Matrix4.fromList(doubleList);
  thermion_flutter_free(arrayPtr.cast<Void>());
  return projectionMatrix;
}