Definition at line 16 of file cu_minimum_bounding_circle.c.
19 CU_ASSERT_TRUE(
result != NULL);
25 char *msg1 =
"mbc_test failed (got %.12f should be less than radius %.12f) \n";
35 if ( (d -
result->radius) > 0.0000001 )
37 printf(msg1, d,
result->radius);
char result[OUT_DOUBLE_BUFFER_SIZE]
double distance2d_pt_pt(const POINT2D *p1, const POINT2D *p2)
LWPOINTITERATOR * lwpointiterator_create(const LWGEOM *g)
Create a new LWPOINTITERATOR over supplied LWGEOM*.
int lwpointiterator_next(LWPOINTITERATOR *s, POINT4D *p)
Attempts to assign the next point in the iterator to p, and advances the iterator to the next point.
void lwpointiterator_destroy(LWPOINTITERATOR *s)
Free all memory associated with the iterator.
LWBOUNDINGCIRCLE * lwgeom_calculate_mbc(const LWGEOM *g)
void lwboundingcircle_destroy(LWBOUNDINGCIRCLE *c)
References distance2d_pt_pt(), lwboundingcircle_destroy(), lwgeom_calculate_mbc(), lwpointiterator_create(), lwpointiterator_destroy(), lwpointiterator_next(), result, POINT2D::x, POINT4D::x, POINT2D::y, and POINT4D::y.
Referenced by basic_test().