Tests whether the queryPoint is in the node, or a child of that node
Tests whether the queryPoint is in the node, or a child of that node
a point to test
whether the given point is in the node, or a child of this node
for testing purposes only; used in QuadTreeSuite.scala
for testing purposes only; used in QuadTreeSuite.scala
center and width of the box
Tests if queryPoint is near a node
Tests if queryPoint is near a node
a point to test
radius of covered area
Makes children nodes by partitioning the box into equal sub-boxes and adding a node for each sub-box
minDist is defined so that every point in the box has distance to queryPoint greater than minDist (minDist adopted from "Nearest Neighbors Queries" by N.
minDist is defined so that every point in the box has distance to queryPoint greater than minDist (minDist adopted from "Nearest Neighbors Queries" by N. Roussopoulos et al.)
Tests if queryPoint is within a radius of the node
Tests if queryPoint is within a radius of the node
a point to test
radius of test area
whether the given point is in the area
Recursive function that partitions a n-dim box by taking the (n-1) dimensional plane through the center of the box keeping the n-th coordinate fixed, then shifting it in the n-th direction up and down and recursively applying partitionBox to the two shifted (n-1) dimensional planes.
Recursive function that partitions a n-dim box by taking the (n-1) dimensional plane through the center of the box keeping the n-th coordinate fixed, then shifting it in the n-th direction up and down and recursively applying partitionBox to the two shifted (n-1) dimensional planes.
the center of the box
a vector of lengths of each dimension of the box
Finds which child queryPoint lies in.
Finds which child queryPoint lies in. node.children is a Seq[Node], and whichChild finds the appropriate index of that Seq.