PostGIS  2.1.10dev-r@@SVN_REVISION@@
void gbox_expand ( GBOX g,
double  d 
)

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

Definition at line 91 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().

92 {
93  g->xmin -= d;
94  g->xmax += d;
95  g->ymin -= d;
96  g->ymax += d;
97  if ( FLAGS_GET_Z(g->flags) )
98  {
99  g->zmin -= d;
100  g->zmax += d;
101  }
102  if ( FLAGS_GET_M(g->flags) )
103  {
104  g->mmin -= d;
105  g->mmax += d;
106  }
107 }
double xmax
Definition: liblwgeom.h:249
double zmax
Definition: liblwgeom.h:253
double ymin
Definition: liblwgeom.h:250
double xmin
Definition: liblwgeom.h:248
double ymax
Definition: liblwgeom.h:251
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
Definition: liblwgeom.h:106
uint8_t flags
Definition: liblwgeom.h:247
double mmin
Definition: liblwgeom.h:254
double zmin
Definition: liblwgeom.h:252
#define FLAGS_GET_M(flags)
Definition: liblwgeom.h:107
double mmax
Definition: liblwgeom.h:255

Here is the caller graph for this function: