PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ lwboundingcircle_create()

static LWBOUNDINGCIRCLE* lwboundingcircle_create ( )
static

Definition at line 217 of file lwboundingcircle.c.

References LWBOUNDINGCIRCLE::center, lwalloc(), LWBOUNDINGCIRCLE::radius, POINT2D::x, and POINT2D::y.

Referenced by lwgeom_calculate_mbc().

218 {
220  c->center = lwalloc(sizeof(POINT2D));
221 
222  c->radius = 0.0;
223  c->center->x = 0.0;
224  c->center->y = 0.0;
225 
226  return c;
227 }
double x
Definition: liblwgeom.h:330
double y
Definition: liblwgeom.h:330
POINT2D * center
Definition: liblwgeom.h:1611
void * lwalloc(size_t size)
Definition: lwutil.c:227
Here is the call graph for this function:
Here is the caller graph for this function: