MobilityDB 1.3
Loading...
Searching...
No Matches

◆ overRight4D()

static bool overRight4D ( const TboxNode nodebox,
const TBox query 
)
static

Can any box from nodebox does not extend to the left of the query?

A span s1 does not extend to the left of a span s2 if s1.lower > s2.lower. Therefore, given a query box and a node box, a box in the node box may may not extend to the right of the query box if for dimension X

  • nodebox->left.span.lower (the minimum of the lower bounds in the node box) <= query->span.lower (the lower bound of the query).

Continuing with the example at the top of this file, if TboxNode is

left = TBOXFLOAT XT([3, 7],[2001-01-03, 2001-01-07])
right = TBOXFLOAT XT([5, 9],[2001-01-05, 2001-01-09])

a query `TBOXFLOAT XT([10, 12],[2001-01-10, 2001-01-12]) satisfies the above condition.