PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ add_supporting_point()

static int add_supporting_point ( SUPPORTING_POINTS support,
const POINT2D p 
)
static

Definition at line 68 of file lwboundingcircle.c.

69 {
70  switch(num_supporting_points(support))
71  {
72  case 0: support->p1 = p;
73  break;
74  case 1: support->p2 = p;
75  break;
76  case 2: support->p3 = p;
77  break;
78  default: return LW_FAILURE;
79  }
80 
81  return LW_SUCCESS;
82 }
#define LW_FAILURE
Definition: liblwgeom.h:79
#define LW_SUCCESS
Definition: liblwgeom.h:80
static uint32_t num_supporting_points(SUPPORTING_POINTS *support)
const POINT2D * p2
const POINT2D * p3
const POINT2D * p1

References LW_FAILURE, LW_SUCCESS, num_supporting_points(), SUPPORTING_POINTS::p1, SUPPORTING_POINTS::p2, and SUPPORTING_POINTS::p3.

Referenced by calculate_mbc().

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