Jump to content
  • Advertisement
Sign in to follow this  

Nearest point find in 3d points in DB

This topic is 3310 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have values in database of points x ,y z.I need to find the nearst point in databse with my current points i implement this algorithm but its take lots of time i want efficent algorithm Note:(this algorithm is same as find smallest number in array) nearstdistance=firstdistance in db values loop (untill all values in databse) find distance between current points and current databse points if distance<nearesrdistance nearesrdistance=distance end loop its takes lots of time beacuse number of current points are so many per sec. tell me best way through distance formula.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!