Constructor and Description |
---|
Look2D(Coordinate mapOrigin,
Coordinate viewOrigin,
double scaleX,
double scaleY,
Azimuth rotation)
Constructs the Look2D.
|
Modifier and Type | Method and Description |
---|---|
Coordinate |
getMapOrigin()
The origin, defined in the
map reference . |
Azimuth |
getRotation()
The rotation of the camera.
|
double |
getScaleX()
The scale on the horizontal axis in device independent pixels per map unit.
|
double |
getScaleY()
The scale on the vertical axis in device independent pixels per map unit.
|
Coordinate |
getViewOrigin()
The view origin, defined in view coordinates (device independent pixels, (0, 0) at the bottom left of the screen).
|
public Look2D(@NotNull Coordinate mapOrigin, @NotNull Coordinate viewOrigin, double scaleX, double scaleY, @NotNull Azimuth rotation)
mapOrigin
- The origin, defined in the map reference
.viewOrigin
- The view origin, defined in view coordinates (device independent pixels, (0, 0) at the bottom left of the screen).scaleX
- The scale on the horizontal axis in device independent pixels per map unit.scaleY
- The scale on the vertical axis in device independent pixels per map unit.rotation
- The rotation of the camera.@NotNull public Coordinate getMapOrigin()
map reference
.
The origin is mapped to viewOrigin
.
@NotNull public Coordinate getViewOrigin()
The view origin is mapped to mapOrigin
. It is usually the center of the host component. A typical use case for changing the viewOrigin is to zoom in on a specific point, e.g. at the current mouse position.
public double getScaleX()
public double getScaleY()