MobilityDB 1.1

◆ spannode_quadtree_next()

static void spannode_quadtree_next ( const SpanNode nodebox,
const Span centroid,
uint8  quadrant,
SpanNode next_nodespan 
)
static

Compute the next traversal value for a quadtree given the bounding box and the centroid of the current node and the quadrant number (0 to 3).

For example, given the bounding box of the root node (level 0) and the centroid as follows nodebox = (-infinity, -infinity)(infinity, infinity) centroid = (2001-06-13 18:10:00+02, 2001-06-13 18:11:00+02) the quadrants are as follows 0 = (-infinity, 2001-06-13 18:10:00)(infinity, 2001-06-13 18:11:00) 1 = (-infinity, 2001-06-13 18:10:00)(2001-06-13 18:11:00, infinity) 2 = (2001-06-13 18:10:00, -infinity)(infinity, 2001-06-13 18:11:00) 3 = (2001-06-13 18:10:00, -infinity)(2001-06-13 18:11:00, infinity)