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