private final Mat22 upScale;
private final Mat22 downScale;
public TestbedCamera(Vec2 initPosition, float initScale, float zoomScaleDiff) {
Preconditions.checkArgument(zoomScaleDiff > 0, "Zoom scale %d must be > 0", zoomScaleDiff);
this.transform = new OBBViewportTransform();
transform.setCamera(initPosition.x, initPosition.y, initScale);
this.initPosition.set(initPosition);
this.initScale = initScale;
upScale = Mat22.createScaleTransform(1 + zoomScaleDiff);
downScale = Mat22.createScaleTransform(1 - zoomScaleDiff);