Jump to content
  • Advertisement
Sign in to follow this  

Nearest point find in 3d points in DB

This topic is 3490 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
Sign in to follow this  

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!