tiledrect more efficient

This commit is contained in:
Ondřej Hruška
2014-04-21 16:46:15 +02:00
parent bb84d143a8
commit 0d5b6eb995
3 changed files with 19 additions and 2 deletions
@@ -21,7 +21,7 @@ public class TiledRect extends RectProxy {
final private Num perCol;
/** Left top tile */
final private Rect aTile;
private Rect aTile;
public TiledRect(Rect source, int horizontal, int vertical)
@@ -37,6 +37,17 @@ public class TiledRect extends RectProxy {
}
/**
* Set tile overlap. Applies only to tile, not span.
*
* @param overlap how far to overlap to neighbouring tiles on all sides
*/
public void setOverlap(double overlap)
{
aTile = aTile.grow(overlap);
}
/**
* Get a tile.
*