public static Point fullToScreen ( MisoSceneMetrics metrics , int x , int y , Point spos ) { // get the tile screen position int tx = fullToTile ( x ) , ty = fullToTile ( y ) ; Point tspos = tileToScreen ( metrics , tx , ty , new Point ( ) ) ; // get the pixel position of the fine coords within the tile Point ppos = new Point ( ) ; int fx = x - ( tx * FULL_TILE_FACTOR ) , fy = y - ( ty * FULL_TILE_FACTOR ) ; fineToPixel ( metrics , fx , fy , ppos ) ; // final position is tile position offset by fine position spos . x = tspos . x + ppos . x ; spos . y = tspos . y + ppos . y ; return spos ; }
Convert the given full coordinates to screen - based pixel coordinates . Converted coordinates are placed in the given point object .