PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lw_arc_calculate_gbox_cartesian()

static int lw_arc_calculate_gbox_cartesian ( const POINT4D p1,
const POINT4D p2,
const POINT4D p3,
GBOX gbox 
)
static

Definition at line 528 of file g_box.c.

529 {
530  int rv;
531 
532  LWDEBUG(2, "lw_arc_calculate_gbox_cartesian called.");
533 
534  rv = lw_arc_calculate_gbox_cartesian_2d((POINT2D*)p1, (POINT2D*)p2, (POINT2D*)p3, gbox);
535  gbox->zmin = FP_MIN(p1->z, p3->z);
536  gbox->mmin = FP_MIN(p1->m, p3->m);
537  gbox->zmax = FP_MAX(p1->z, p3->z);
538  gbox->mmax = FP_MAX(p1->m, p3->m);
539  return rv;
540 }
int lw_arc_calculate_gbox_cartesian_2d(const POINT2D *A1, const POINT2D *A2, const POINT2D *A3, GBOX *gbox)
Definition: g_box.c:459
#define FP_MAX(A, B)
#define FP_MIN(A, B)
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:83
double zmax
Definition: liblwgeom.h:300
double zmin
Definition: liblwgeom.h:299
double mmax
Definition: liblwgeom.h:302
double mmin
Definition: liblwgeom.h:301
double m
Definition: liblwgeom.h:355
double z
Definition: liblwgeom.h:355

References FP_MAX, FP_MIN, lw_arc_calculate_gbox_cartesian_2d(), LWDEBUG, POINT4D::m, GBOX::mmax, GBOX::mmin, POINT4D::z, GBOX::zmax, and GBOX::zmin.

Referenced by lwcircstring_calculate_gbox_cartesian().

Here is the call graph for this function:
Here is the caller graph for this function: