659 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0.5, 0.000001);
666 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0.5, 0.000001);
673 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, sqrt(2.0), 0.000001);
680 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, sqrt(2.0)-1, 0.000001);
687 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0, 0.000001);
694 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0, 0.000001);
701 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 1, 0.000001);
711 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)
void lw_dist2d_distpts_init(DISTPTS *dl, int mode)
Structure used in distance-calculations.