getCameraPosition method
Implementation
@override
Future<Vector3> getCameraPosition() async {
if (_viewer == null) {
throw Exception("No viewer available");
}
var arrayPtr = get_camera_model_matrix(_viewer!);
var doubleList = arrayPtr.asTypedList(16);
var modelMatrix = Matrix4.fromFloat64List(doubleList);
var position = modelMatrix.getColumn(3).xyz;
thermion_flutter_free(arrayPtr.cast<Void>());
return position;
}