Definition at line 465 of file gbox.c.
466{
467 POINT2D xmin, ymin, xmax, ymax;
469 int A2_side;
470 double radius_A;
471
472 LWDEBUG(2,
"lw_arc_calculate_gbox_cartesian_2d called.");
473
475
476
477 if (radius_A < 0.0)
478 {
484 }
485
486
487 if ( A1->
x == A3->
x && A1->
y == A3->
y )
488 {
489 gbox->
xmin = C.
x - radius_A;
490 gbox->
ymin = C.
y - radius_A;
491 gbox->
xmax = C.
x + radius_A;
492 gbox->
ymax = C.
y + radius_A;
494 }
495
496
501
502
503 xmin.
x = C.
x - radius_A;
506 ymin.
y = C.
y - radius_A;
507 xmax.
x = C.
x + radius_A;
510 ymax.
y = C.
y + radius_A;
511
512
513
514
515
517
520
523
526
529
531}
double lw_arc_center(const POINT2D *p1, const POINT2D *p2, const POINT2D *p3, POINT2D *result)
Determines the center of the circle defined by the three given points.
int lw_segment_side(const POINT2D *p1, const POINT2D *p2, const POINT2D *q)
lw_segment_side()
#define LWDEBUG(level, msg)
References FP_MAX, FP_MIN, lw_arc_center(), lw_segment_side(), LW_SUCCESS, LWDEBUG, POINT2D::x, GBOX::xmax, GBOX::xmin, POINT2D::y, GBOX::ymax, and GBOX::ymin.
Referenced by lw_arc_calculate_gbox_cartesian(), ptarrayarc_raycast_intersections(), and rect_node_leaf_new().