Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL::compare_y wrong result

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL::compare_y wrong result


Chronological Thread 
  • From: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL::compare_y wrong result
  • Date: Tue, 13 Oct 2009 00:23:23 +0200

Sterpa a écrit :
I have this two points
1.1 -2.08 - 1.1 -2.08

and this is the output of CGAL::compare_y(point1, point2);

-1 (SMALLER)

how can this happen?
I've tried other approach such as a simple point1.y() != point2.y() or just
point1 != point2, but I never got the wrong output (which is "EQUAL"). Do I
need to use another function?

Does it still print the same .y() values if you do the following ?

std::cout.precision(20);

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/



Archive powered by MHonArc 2.6.16.

Top of Page