PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ expand_box3d()

void expand_box3d ( BOX3D box,
double  d 
)

Expand given box of 'd' units in all directions.

Definition at line 336 of file lwgeom_box3d.c.

337 {
338  box->xmin -= d;
339  box->ymin -= d;
340  box->zmin -= d;
341 
342  box->xmax += d;
343  box->ymax += d;
344  box->zmax += d;
345 }
double xmax
Definition: liblwgeom.h:281
double zmin
Definition: liblwgeom.h:280
double ymax
Definition: liblwgeom.h:281
double ymin
Definition: liblwgeom.h:280
double zmax
Definition: liblwgeom.h:281
double xmin
Definition: liblwgeom.h:280

References BOX3D::xmax, BOX3D::xmin, BOX3D::ymax, BOX3D::ymin, BOX3D::zmax, and BOX3D::zmin.

Referenced by BOX3D_expand().

Here is the caller graph for this function: