Fix bug with quad rect

This commit is contained in:
Victor Shcherb 2021-03-18 14:26:48 +01:00
parent bc1f18fcb4
commit 4a357e6459

View file

@ -33,7 +33,7 @@ public class QuadRect {
return Math.min(this.left, this.right) <= Math.min(left, right) return Math.min(this.left, this.right) <= Math.min(left, right)
&& Math.max(this.left, this.right) >= Math.max(left, right) && Math.max(this.left, this.right) >= Math.max(left, right)
&& Math.min(this.top, this.bottom) <= Math.min(top, bottom) && Math.min(this.top, this.bottom) <= Math.min(top, bottom)
&& Math.max(this.top, this.bottom) <= Math.max(top, bottom); && Math.max(this.top, this.bottom) >= Math.max(top, bottom);
} }
public boolean contains(QuadRect box) { public boolean contains(QuadRect box) {