mourner / rbush

RBush — a high-performance JavaScript R-tree-based 2D spatial index for points and rectangles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Search/collision "intersects" also triggers on "contains"?

danielsedlacek opened this issue · comments

Hi Vladimir, first of all, this is awesome, thanks!

I am not a native speaker and I would like to clarify if the search/collision methods trigger when one square fully contains smaller square even if they technically do not intersect.

For instance, do squares [0,0,100,100] and [10,10,90,90] intersect?

Thanks!

The outlines of the boxes don't intersect, but the boxes themselves (with their interior) do.