Open ayebear opened 7 years ago
I ran some more tests: Using get() with an area will return exact matches, but using line segments may return non-overlapping objects. I guess I ignored this in the documentation:
Please also note that getting objects close to a line segment will guarantee that all objects close to the line will be iterated over, but other non-overlapping objects may also be returned.
I don't think it should be inconsistent like this though, between using line segments versus using areas.
For some reason, when dealing with line segments using
get()
, all objects are returned. I'm thinking maybe I am misunderstanding what using a line segment actually does, but it definitely is not what I would expect.Code example (es6):