getEnclosingCamera method
Calculates camera that fits provided bounding box.
boundingBox Metrics bounding box to enclose.
Example:
BoundingBox boundingBox = BoundingBox(Point(0.0, 0.0), Point(20.0, 30.0));
Camera camera = _locationWindow!.getEnclosingCamera(boundingBox);
print("Camera that fits bounding box: $camera");
Implementation
@override
Camera getEnclosingCamera(BoundingBox boundingBox) {
final _getEnclosingCameraFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
CameraNative Function(Pointer<Void>, BoundingBoxNative),
CameraNative Function(Pointer<Void>, BoundingBoxNative)
>('navigine_sdk_flutter_LocationWindow_getEnclosingCamera__BoundingBox'));
final __resultHandle = _getEnclosingCameraFfi(this.ptr, BoundingBoxImpl.toNative(boundingBox));
final _result = CameraImpl.fromNative(__resultHandle);
exception.checkCallResult();
return _result;
}