928 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 1, 0.000001);
935 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 1, 0.000001);
938 P.
y = P.
x = 2 * cos(M_PI_4);
942 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 1, 0.000001);
953 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, sqrt(2.0), 0.000001);
960 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 1, 0.000001);
967 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0.5, 0.000001);
974 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0.5, 0.000001);
981 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0.5, 0.000001);
988 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, sqrt(2.0)-1.0, 0.000001);
void lwline_free(LWLINE *line)
static LWGEOM * lwgeom_from_text(const char *str)
int lw_dist2d_pt_ptarrayarc(const POINT2D *p, const POINTARRAY *pa, DISTPTS *dl)
Search all the arcs of pointarray to see which one is closest to p1 Returns minimum distance between ...
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
Structure used in distance-calculations.
void lw_dist2d_distpts_init(DISTPTS *dl, int mode)