getEnclosingCamera abstract method

Camera getEnclosingCamera(
  1. BoundingBox boundingBox
)

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

Camera getEnclosingCamera(BoundingBox boundingBox);