viewfinder property

Viewfinder get viewfinder

The viewfinder controls which part of the world is seen through the viewport.

Thus, viewfinder's position is the world point which is seen at the center of the viewport. In addition, viewfinder controls the zoom level (i.e. how much of the world is seen through the viewport), and, optionally, rotation.

Implementation

Viewfinder get viewfinder => _viewfinder;
set viewfinder (Viewfinder newViewfinder)

Implementation

set viewfinder(Viewfinder newViewfinder) {
  _viewfinder.removeFromParent();
  _viewfinder = newViewfinder;
  add(_viewfinder);
}