/** * Translates the view by the specified distances along the x and y direction * (of the image plate). * * @param dx The distance in x direction, given in vworld dimensions. * @param dy The distance in y direction, given in vworld dimensions. */ public void translateXY(final double dx, final double dy) { getXDir(xDir); getYDir(yDir); xDir.scale(dx); yDir.scale(dy); xDir.add(yDir); translate(xDir); }