PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ initRectBox()

static RectBox* initRectBox ( void  )
static

Definition at line 155 of file gserialized_spgist_2d.c.

References RectBox::left, and RectBox::right.

Referenced by gserialized_spgist_inner_consistent_2d().

156 {
157  RectBox *rect_box = (RectBox *)palloc(sizeof(RectBox));
158  float infinity = FLT_MAX;
159 
160  rect_box->left.xmin = -infinity;
161  rect_box->left.xmax = infinity;
162 
163  rect_box->left.ymin = -infinity;
164  rect_box->left.ymax = infinity;
165 
166  rect_box->right.xmin = -infinity;
167  rect_box->right.xmax = infinity;
168 
169  rect_box->right.ymin = -infinity;
170  rect_box->right.ymax = infinity;
171 
172  return rect_box;
173 }
Here is the caller graph for this function: