PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ gbox_expand_xyzm()

void gbox_expand_xyzm ( GBOX g,
double  dx,
double  dy,
double  dz,
double  dm 
)

Move the box minimums down and the maximums up by the distances provided.

Definition at line 122 of file g_box.c.

References GBOX::flags, FLAGS_GET_M, FLAGS_GET_Z, GBOX::mmax, GBOX::mmin, GBOX::xmax, GBOX::xmin, GBOX::ymax, GBOX::ymin, GBOX::zmax, and GBOX::zmin.

Referenced by BOX2D_expand(), and LWGEOM_expand().

123 {
124  g->xmin -= dx;
125  g->xmax += dx;
126  g->ymin -= dy;
127  g->ymax += dy;
128 
129  if (FLAGS_GET_Z(g->flags))
130  {
131  g->zmin -= dz;
132  g->zmax += dz;
133  }
134 
135  if (FLAGS_GET_M(g->flags))
136  {
137  g->mmin -= dm;
138  g->mmax += dm;
139  }
140 }
double xmax
Definition: liblwgeom.h:295
double zmax
Definition: liblwgeom.h:299
double ymin
Definition: liblwgeom.h:296
double xmin
Definition: liblwgeom.h:294
double ymax
Definition: liblwgeom.h:297
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
Definition: liblwgeom.h:139
uint8_t flags
Definition: liblwgeom.h:293
double mmin
Definition: liblwgeom.h:300
double zmin
Definition: liblwgeom.h:298
#define FLAGS_GET_M(flags)
Definition: liblwgeom.h:140
double mmax
Definition: liblwgeom.h:301
Here is the caller graph for this function: