PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ expand_box3d()

void expand_box3d ( BOX3D box,
double  d 
)

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

Definition at line 359 of file lwgeom_box3d.c.

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

Referenced by BOX3D_expand().

360 {
361  box->xmin -= d;
362  box->ymin -= d;
363  box->zmin -= d;
364 
365  box->xmax += d;
366  box->ymax += d;
367  box->zmax += d;
368 }
double ymin
Definition: liblwgeom.h:277
double xmin
Definition: liblwgeom.h:277
double xmax
Definition: liblwgeom.h:278
double ymax
Definition: liblwgeom.h:278
double zmax
Definition: liblwgeom.h:278
double zmin
Definition: liblwgeom.h:277
Here is the caller graph for this function: