PostGIS  2.1.10dev-r@@SVN_REVISION@@
Datum BOX3D_expand ( PG_FUNCTION_ARGS  )

Definition at line 264 of file lwgeom_box3d.c.

References expand_box3d(), and result.

265 {
266  BOX3D *box = (BOX3D *)PG_GETARG_POINTER(0);
267  double d = PG_GETARG_FLOAT8(1);
268  BOX3D *result = (BOX3D *)palloc(sizeof(BOX3D));
269 
270  memcpy(result, box, sizeof(BOX3D));
271  expand_box3d(result, d);
272 
273  PG_RETURN_POINTER(result);
274 }
char ** result
Definition: liblwgeom.h:218
void expand_box3d(BOX3D *box, double d)
Expand given box of 'd' units in all directions.
Definition: lwgeom_box3d.c:252

Here is the call graph for this function: