getCameraViewMatrix method
Implementation
@override
Future<Matrix4> getCameraViewMatrix() async {
if (_viewer == null) {
throw Exception("No viewer available");
}
var arrayPtr = get_camera_view_matrix(_viewer!);
var viewMatrix = Matrix4.fromList(arrayPtr.asTypedList(16));
allocator.free(arrayPtr);
return viewMatrix;
}