PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ getQuadrant4D()

static uint8 getQuadrant4D ( BOX2DF *  centroid,
BOX2DF *  inBox 
)
static

Definition at line 129 of file gserialized_spgist_2d.c.

130 {
131  uint8 quadrant = 0;
132 
133  if (inBox->xmin > centroid->xmin)
134  quadrant |= 0x8;
135 
136  if (inBox->xmax > centroid->xmax)
137  quadrant |= 0x4;
138 
139  if (inBox->ymin > centroid->ymin)
140  quadrant |= 0x2;
141 
142  if (inBox->ymax > centroid->ymax)
143  quadrant |= 0x1;
144 
145  return quadrant;
146 }
Datum centroid(PG_FUNCTION_ARGS)

References centroid().

Referenced by gserialized_spgist_choose_2d(), and gserialized_spgist_picksplit_2d().

Here is the call graph for this function:
Here is the caller graph for this function: