621 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 1, 0.000001);
629 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 1, 0.000001);
633 A1.
x = -2; A1.
y = -2;
637 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 1, 0.000001);
642 A2.
x = 0; A2.
y = 0.5;
645 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0.5, 0.000001);
653 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0., 0.000001);
661 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, sqrt(2.0)-1, 0.000001);
669 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0, 0.000001);
678 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, sqrt(2.0)-1, 0.000001);
int lw_dist2d_seg_arc(const POINT2D *A1, const POINT2D *A2, const POINT2D *B1, const POINT2D *B2, const POINT2D *B3, DISTPTS *dl)
Calculate the shortest distance between an arc and an edge.
Structure used in distance-calculations.
void lw_dist2d_distpts_init(DISTPTS *dl, int mode)