MobilityDB 1.1

◆ get_quadrant2D()

static uint8 get_quadrant2D ( const Span centroid,
const Span query 
)
static

Calculate the quadrant.

The quadrant is 8 bit unsigned integer with 2 least bits in use. This function accepts Spans as input. The 2 bits are set by comparing a corner of the box. This makes 4 quadrants in total.