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

◆ left4D()

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

Can any box from nodebox be to the left of the query?

A span s1 is to the left of a span s2 if s1.upper < s2.lower. Therefore, given a query box and a node box, a box in the node box may may be to the left of the query box if for dimension X

  • nodebox->right.span.upper (the maximum of the upper 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.