Added fineToFull().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2232 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: IsoUtil.java,v 1.43 2003/01/31 23:10:45 mdb Exp $
|
||||
// $Id: IsoUtil.java,v 1.44 2003/02/04 03:11:13 mdb Exp $
|
||||
|
||||
package com.threerings.miso.client.util;
|
||||
|
||||
@@ -444,6 +444,17 @@ public class IsoUtil
|
||||
return spos;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts the given fine coordinate to a full coordinate (a tile
|
||||
* coordinate plus a fine coordinate remainder). The fine coordinate
|
||||
* is assumed to be relative to tile <code>(0, 0)</code>.
|
||||
*/
|
||||
public static int fineToFull (IsoSceneViewModel model, int fine)
|
||||
{
|
||||
return (fine / model.finegran) * FULL_TILE_FACTOR +
|
||||
(fine % model.finegran);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a polygon framing the specified tile.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user