Clear And Efficient 3D Range Tree Implementation
问题 I'm working on this project where I have to search for objects in 3d space, and efficiency is a huge concern, I think Range Tree is perfect for what I'm trying to do, Interval Tree would also work but I'm not going to delete anything from the tree, once I add every object in 3D space, I'll only use the structure to do a search. Here's how I'm going to use the structure: Let say that I have an array(let's call it queryArr ) of objects (~ 10,000 objects) each objects have 3 parameter (x,y,z) I