PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ calculate_mbc_from_support()

static int calculate_mbc_from_support ( SUPPORTING_POINTS support,
LWBOUNDINGCIRCLE mbc 
)
static

Definition at line 156 of file lwboundingcircle.c.

157 {
158  switch(num_supporting_points(support))
159  {
160  case 0: break;
161  case 1: calculate_mbc_1(support, mbc);
162  break;
163  case 2: calculate_mbc_2(support, mbc);
164  break;
165  case 3: calculate_mbc_3(support, mbc);
166  break;
167  default: return LW_FAILURE;
168  }
169 
170  return LW_SUCCESS;
171 }
#define LW_FAILURE
Definition: liblwgeom.h:79
#define LW_SUCCESS
Definition: liblwgeom.h:80
static void calculate_mbc_3(const SUPPORTING_POINTS *support, LWBOUNDINGCIRCLE *mbc)
static void calculate_mbc_1(const SUPPORTING_POINTS *support, LWBOUNDINGCIRCLE *mbc)
static uint32_t num_supporting_points(SUPPORTING_POINTS *support)
static void calculate_mbc_2(const SUPPORTING_POINTS *support, LWBOUNDINGCIRCLE *mbc)

References calculate_mbc_1(), calculate_mbc_2(), calculate_mbc_3(), LW_FAILURE, LW_SUCCESS, and num_supporting_points().

Referenced by calculate_mbc().

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