PostGIS  3.0.6dev-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 115 of file gbox.c.

116 {
117  g->xmin -= dx;
118  g->xmax += dx;
119  g->ymin -= dy;
120  g->ymax += dy;
121 
122  if (FLAGS_GET_Z(g->flags))
123  {
124  g->zmin -= dz;
125  g->zmax += dz;
126  }
127 
128  if (FLAGS_GET_M(g->flags))
129  {
130  g->mmin -= dm;
131  g->mmax += dm;
132  }
133 }
#define FLAGS_GET_Z(flags)
Definition: liblwgeom.h:179
#define FLAGS_GET_M(flags)
Definition: liblwgeom.h:180
double ymax
Definition: liblwgeom.h:343
double zmax
Definition: liblwgeom.h:345
double xmax
Definition: liblwgeom.h:341
double zmin
Definition: liblwgeom.h:344
double mmax
Definition: liblwgeom.h:347
double ymin
Definition: liblwgeom.h:342
double xmin
Definition: liblwgeom.h:340
double mmin
Definition: liblwgeom.h:346
lwflags_t flags
Definition: liblwgeom.h:339

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().

Here is the caller graph for this function: