Loading...
Searching...
No Matches

Class describing position of the camera. More...

Public Member Functions

 Camera (this.point, this.zoom, this.rotation, this.tilt)
 Default constructor.
 

Public Attributes

Point point
 point the camera is looking at Point
 
double zoom
 zoom level.
 
double rotation
 Map azimuth in degrees: angle between Location North (top of the image) and the direction of interest on the view plane, in the range [0, 360).
 
double tilt
 Camera tilt in degrees. 0 means vertical downward (map seen from above). Positive values tilt the eye toward the horizon; the renderer clamps tilt to device limits when applying.
 

Detailed Description

Class describing position of the camera.

Referenced from LocationWindow.

Dart code snippet:

// Create camera with constructor
Point newPoint = Point(100.0, 200.0);
Camera newCamera = Camera(newPoint, 50.0, 0.0, 0.0);
print("Created camera with point (${newPoint.x}, ${newPoint.y}), zoom 50.0, rotation 0°, tilt 0°");

Definition at line 26 of file camera.dart.

Constructor & Destructor Documentation

◆ Camera()

Camera.Camera ( this. point,
this. zoom,
this. rotation,
this. tilt )

Default constructor.

Member Data Documentation

◆ point

Point Camera.point

point the camera is looking at Point

Definition at line 32 of file camera.dart.

◆ rotation

double Camera.rotation

Map azimuth in degrees: angle between Location North (top of the image) and the direction of interest on the view plane, in the range [0, 360).

Definition at line 41 of file camera.dart.

◆ tilt

double Camera.tilt

Camera tilt in degrees. 0 means vertical downward (map seen from above). Positive values tilt the eye toward the horizon; the renderer clamps tilt to device limits when applying.

Definition at line 46 of file camera.dart.

◆ zoom

double Camera.zoom

zoom level.

Definition at line 36 of file camera.dart.


The documentation for this class was generated from the following file: