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
I have a KdTree with indices to Vec<Slot> because Slot is too large to be efficiently stored directly in the KdTree. When removing an entity, one can efficiently remove it from the Vec with Vec::swap_remove(index) which moves the last slot to index. This creates the need to change the stored index inside KdTree of the moved item.
The text was updated successfully, but these errors were encountered:
Add a method to exchange a value of a point.
Use case:
I have a
KdTree
with indices toVec<Slot>
becauseSlot
is too large to be efficiently stored directly in the KdTree. When removing an entity, one can efficiently remove it from the Vec withVec::swap_remove(index)
which moves the last slot toindex
. This creates the need to change the stored index inside KdTree of the moved item.The text was updated successfully, but these errors were encountered: