546 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0.5, 0.000001);
553 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0.5, 0.000001);
560 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, sqrt(2.0), 0.000001);
567 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, sqrt(2.0)-1, 0.000001);
574 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0, 0.000001);
581 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0, 0.000001);
588 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 1, 0.000001);
598 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0.5, 0.000001);
int lw_dist2d_pt_arc(const POINT2D *P, const POINT2D *A1, const POINT2D *A2, const POINT2D *A3, DISTPTS *dl)
Structure used in distance-calculations.
void lw_dist2d_distpts_init(DISTPTS *dl, int mode)