PostGIS  2.4.9dev-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:328
double y
Definition: liblwgeom.h:328
POINT2D * center
Definition: liblwgeom.h:1643
void * lwalloc(size_t size)
Definition: lwutil.c:229
Here is the call graph for this function:
Here is the caller graph for this function: