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.