Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug!bug!bug! #42

Open
MrYang614 opened this issue Dec 22, 2023 · 0 comments
Open

bug!bug!bug! #42

MrYang614 opened this issue Dec 22, 2023 · 0 comments

Comments

@MrYang614
Copy link

const points = [{ 'y': 2, 'x': 110 }, { 'y': 2, 'x': 222 }, { 'y': 2, 'x': 333 }, { 'y': 2, 'x': 444 }, { 'y': 2, 'x': 555 }, { 'y': 2, 'x': 666 }, { 'y': 2, 'x': 777 }, { 'y': 2, 'x': 888 }, { 'y': 2, 'x': 999 }, { 'y': 2, 'x': 1110 }]

R = 1000

            const tree = new kdTree([...points], distance, ["x", "z"]);

            const obj = {};
            
                const nearest = tree.nearest(points[0], 10, R);

// const nearest = tree.nearest(point[points.length-1],10,R)

In a line points , the first point and the last point , get the error data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant