From bb25185914fa29a85ae445add77f15108ad50af9 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Mon, 17 Mar 2003 16:18:56 +0000 Subject: * (IntersectLines): Correction d'un probl�me de precision il fallait utiliser des flottants. --- generic/Geo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'generic') diff --git a/generic/Geo.c b/generic/Geo.c index 2c84f08..7efab22 100644 --- a/generic/Geo.c +++ b/generic/Geo.c @@ -614,7 +614,7 @@ ShiftLine(ZnPoint *p1, */ if (shift_table[0] == 0) { int i; - double tangent, cosine; + ZnReal tangent, cosine; for (i = 0; i <= 128; i++) { tangent = i/128.0; @@ -678,7 +678,7 @@ IntersectLines(ZnPoint *a1, ZnPoint *b2, ZnPoint *pi) { - int dxadyb, dxbdya, dxadxb, dyadyb, p, q; + ZnReal dxadyb, dxbdya, dxadxb, dyadyb, p, q; dxadyb = (a2->x - a1->x)*(b2->y - b1->y); dxbdya = (b2->x - b1->x)*(a2->y - a1->y); -- cgit v1.1