PostGIS  2.2.8dev-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 498 of file g_box.c.

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

Referenced by lwcircstring_calculate_gbox_cartesian().

499 {
500  int rv;
501 
502  LWDEBUG(2, "lw_arc_calculate_gbox_cartesian called.");
503 
504  rv = lw_arc_calculate_gbox_cartesian_2d((POINT2D*)p1, (POINT2D*)p2, (POINT2D*)p3, gbox);
505  gbox->zmin = FP_MIN(p1->z, p3->z);
506  gbox->mmin = FP_MIN(p1->m, p3->m);
507  gbox->zmax = FP_MAX(p1->z, p3->z);
508  gbox->mmax = FP_MAX(p1->m, p3->m);
509  return rv;
510 }
double m
Definition: liblwgeom.h:336
int lw_arc_calculate_gbox_cartesian_2d(const POINT2D *A1, const POINT2D *A2, const POINT2D *A3, GBOX *gbox)
Definition: g_box.c:429
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:50
#define FP_MIN(A, B)
double zmax
Definition: liblwgeom.h:281
double z
Definition: liblwgeom.h:336
double mmin
Definition: liblwgeom.h:282
double zmin
Definition: liblwgeom.h:280
double mmax
Definition: liblwgeom.h:283
#define FP_MAX(A, B)
Here is the call graph for this function:
Here is the caller graph for this function: