Add tileToFull

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@678 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Charlie Groves
2008-10-29 01:11:57 +00:00
parent df41e4e849
commit df7fdc5e81
@@ -383,6 +383,14 @@ public class MisoUtil
return toFull(fine / metrics.finegran, fine % metrics.finegran);
}
/**
* Returns the supplied tile coordinate as a full coordinate assuming a fine offset of 0.
*/
public static int tileToFull (int tile)
{
return toFull(tile, 0);
}
/**
* Composes the supplied tile coordinate and fine coordinate offset
* into a full coordinate.