code: private double[] getWorldToScreenTranslation(double resolution, Coordinate position) {
  		double translateX = -(position.getX() / resolution) + ((double) viewPort.getMapWidth() / 2.0);
  		double translateY = (position.getY() / resolution) + ((double) viewPort.getMapHeight() / 2.0);
  		return new double[] { translateX, translateY };
  	}
docs: -------------------------------------------------------------------------