PostGIS  3.4.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 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:165
#define FLAGS_GET_M(flags)
Definition: liblwgeom.h:166
double ymax
Definition: liblwgeom.h:357
double zmax
Definition: liblwgeom.h:359
double xmax
Definition: liblwgeom.h:355
double zmin
Definition: liblwgeom.h:358
double mmax
Definition: liblwgeom.h:361
double ymin
Definition: liblwgeom.h:356
double xmin
Definition: liblwgeom.h:354
double mmin
Definition: liblwgeom.h:360
lwflags_t flags
Definition: liblwgeom.h:353

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: