Sign in to follow this  

Nearest point find in 3d points in DB

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this