You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is, that I have a very simple three rects layout (root, two childs with 50% width and 100% height of root), where a search with a point inside c2, returns the root node and c1... and not the root node and c2.
The text was updated successfully, but these errors were encountered:
This library uses a standard R-tree that accepts any rectangles with min and max values. It has no concept of direction or coordinate systems. It shouldn't matter if you use screen coordinates (min is top-left and max is bottom-right) or cartesian coordinates (min is bottom-left and max is top-right). Just as long as you always use the the same coordinate system for all of your operations.
I have a graphics lib, where the origin (0,0) is at the top/left, and rects use a top/left and width/height notation.
rbang origin (0,0) is bottom/left and uses a bottom/left, top/right notation.
So, when inserting rects from the graphics lib, I use code like this to update the same rectangle:
The problem is, that I have a very simple three rects layout (root, two childs with 50% width and 100% height of root), where a search with a point inside c2, returns the root node and c1... and not the root node and c2.
The text was updated successfully, but these errors were encountered: