368{
372
373 if (PG_NARGS() == 2)
374 {
375
376 double d = PG_GETARG_FLOAT8(1);
378 }
379 else
380 {
381 double dx = PG_GETARG_FLOAT8(1);
382 double dy = PG_GETARG_FLOAT8(2);
383 double dz = PG_GETARG_FLOAT8(3);
384
386 }
387
388 PG_RETURN_POINTER(
result);
389}
char result[OUT_DOUBLE_BUFFER_SIZE]
static void expand_box3d_xyz(BOX3D *box, double dx, double dy, double dz)
void expand_box3d(BOX3D *box, double d)
Expand given box of 'd' units in all directions.