Package world.mappable.mapkit.map
Class CameraPosition
java.lang.Object
↳ world.mappable.mapkit.map.CameraPosition
class CameraPosition implements Serializable
The position of the camera.
Summary
Constructors
Signature and Description |
CameraPosition(@NonNull Point target, |
CameraPosition() |
Methods
Type and modifiers |
Method and Description |
getTarget() |
|
float |
getZoom() |
float |
getAzimuth() |
float |
getTilt() |
void |
serialize(world.mappable.runtime.bindings.Archive archive) |
Constuctors
CameraPosition
CameraPosition(@NonNull Point target, |
CameraPosition
CameraPosition() |
Use constructor with parameters in your code.
This one is for bindings only!
Methods
getTarget
@NonNull |
The point the camera is looking at.
getZoom
float getZoom() |
Zoom level.
0 corresponds to the whole world displayed in a single tile.
getAzimuth
float getAzimuth() |
Angle between north and the direction of interest on the map plane, in degrees in the range [0, 360).
getTilt
float getTilt() |
Camera tilt in degrees.
0 means vertical downward.
serialize
@Override |