Support 4 npot tx, inlined some btlncks

This commit is contained in:
Ondřej Hruška
2014-04-21 16:17:16 +02:00
parent 0619f83bfb
commit e773a5307a
9 changed files with 137 additions and 217 deletions
@@ -2,7 +2,6 @@ package mightypork.util.constraints.rect.caching;
import mightypork.util.constraints.rect.Rect;
import mightypork.util.constraints.rect.RectConst;
public class RectDigest {
@@ -19,20 +18,17 @@ public class RectDigest {
public RectDigest(Rect rect)
{
{
this.x = rect.origin().x();
this.y = rect.origin().y();
final RectConst frozen = rect.freeze();
this.width = rect.size().x();
this.height = rect.size().y();
this.x = frozen.x().value();
this.y = frozen.y().value();
this.width = frozen.width().value();
this.height = frozen.height().value();
this.left = frozen.left().value();
this.right = frozen.right().value();
this.top = frozen.top().value();
this.bottom = frozen.bottom().value();
this.left = x;
this.right = x + width;
this.top = y;
this.bottom = y + height;
}