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

Point.contains() method is always true #60

Closed
KoheiKanagu opened this issue Jul 30, 2016 · 2 comments
Closed

Point.contains() method is always true #60

KoheiKanagu opened this issue Jul 30, 2016 · 2 comments
Labels

Comments

@KoheiKanagu
Copy link

Hello davidmoten

I think this contains() is always true.
So, I think there is need change to this.x and this.y.

    @Override
    public boolean contains(double x, double y) {
        return x == x && y == y;
    }

in here
https://github.com/davidmoten/rtree/blob/master/src/main/java/com/github/davidmoten/rtree/geometry/Point.java#L121

Thanks.

@davidmoten
Copy link
Owner

Thanks for the report! Fixing now.

@davidmoten
Copy link
Owner

0.8-RC10 released to Maven Central with the fix, thanks again.

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

No branches or pull requests

2 participants