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

◆ overLeft4D()

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

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

A span s1 does not extend to the right of a span s2 if s1.upper < s2.upper. 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->right.span.upper (the maximum of the upper bounds in the node box) <= query->span.upper (the upper 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.