Add tileToFull
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@678 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user