package net.afterlifelochie.fontbox.layout;

public class ObjectBounds {

	public int x, y;
	public int width, height;
	public boolean floating;

	public ObjectBounds(int x, int y, int width, int height, boolean floating) {
		this.x = x;
		this.y = y;
		this.width = width;
		this.height = height;
		this.floating = floating;
	}

	public boolean floating() {
		return floating;
	}

}

@@ -395,11 +395,258 @@
 %0D%0A%09%7D%0D%0A%0D%0A
+%09public boolean intersects(ObjectBounds that) %7B%0D%0A%09%09boolean flag0 = (this.x %3C that.x + that.width && this.x + this.width %3E that.x);%0D%0A%09%09boolean flag1 = (this.y %3C that.y + that.height && this.y + this.height %3E that.y);%0D%0A%09%09return flag0 && flag1;%0D%0A%09%7D%0D%0A
 %7D%0D%0A

Add intersects to objectbounds prototype