Code example for Matrix

Methods: setPolyToPoly

0
        mPool = new TileGeneratorPool(POOL_MAX_SIZE);
 
        mSvgFile = readFile(file);
		RectF limits = SVGParser.getSVGFromInputStream(new ByteArrayInputStream(mSvgFile)).getLimits();
 
        mBaseMatrix = new Matrix();
        mBaseMatrix.setPolyToPoly(
                new float[]{ 
                        0, 0, 
                        limits.width(), 0,
                        limits.width(), limits.height()
                }, 0, 
                new float[]{ 
                        40.95635986328125f, 98.94217824936158f, 
                        40.95730018615723f, 98.94123077396628f, 
                        40.95791244506836f, 98.94186019897214f 
                }, 0, 3); 
    } 
 
	@Override 
	public Tile getTile(int x, int y, int zoom) {