734 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 1, 0.000001);
742 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 1, 0.000001);
746 A1.
x = -2; A1.
y = -2;
750 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 1, 0.000001);
755 A2.
x = 0; A2.
y = 0.5;
758 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0.5, 0.000001);
766 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0., 0.000001);
774 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, sqrt(2.0)-1, 0.000001);
782 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0, 0.000001);
791 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.
void lw_dist2d_distpts_init(DISTPTS *dl, int mode)
Structure used in distance-calculations.