-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I was thinking to enhance justCount to be returnType: 'intersection' | 'count' | 'intersects' while being backward compat with boolean.
If a consumer only needs the test that 2 paths intersect the method can return after the first hit.
Additionally I believe we could than employ another perf enhancement:
If 2 bboxex are tested and bbox1 contains a full axis of bbox2 while bbox2 contains the full counter axis of bbox1 we can assume that there must be an intersection.
Imagine the 2 bboxes creating a cross. Paths must intersect in the shared bbox (the cross' center)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request