Skip to content

quadtree.find(x, y, 0) should return [x, y] if it's present in the tree #39

Open

Description

@pallosp

d3.quadtree().add([1, 2]).find(1, 2, 0) returns undefined, while I'd expect it to return [1, 2].

Activity

  1. Fil commented on Mar 16, 2021

    @Fil
    Member

    the test is for a distance strictly inferior to the radius, so it doesn't pass. It should probably be documented as "strictly within the radius"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions