Class Camera
java.lang.Object
org.variantsync.diffdetective.show.engine.Camera
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getZoom()
void
setLocation
(Vec2 location) void
setZoom
(double zoom) void
zoomTowards
(int steps, Vec2 pos) The camera zooms the given steps.
-
Field Details
-
zoomMin
private static final double zoomMin- See Also:
-
zoomMax
private static final double zoomMax- See Also:
-
location
-
zoom
private double zoom
-
-
Constructor Details
-
Camera
public Camera()
-
-
Method Details
-
zoomTowards
The camera zooms the given steps. If steps > 0 the camera will zoom in, else out. x and y are the point, the camera should zoom at. -
setZoom
public void setZoom(double zoom) -
setLocation
-
getZoom
public double getZoom() -
getLocation
-