Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] small problem with "Circle_2"

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] small problem with "Circle_2"


Chronological Thread 
  • From: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] small problem with "Circle_2"
  • Date: Sat, 19 Apr 2008 10:11:21 +0200

Mahmood Naderan a écrit :
Hello,
Consider this simple declaration:
typedef CGAL::Cartesian<double> Rep;
typedef Rep::Point_2
Point_2;
typedef Rep::Segment_2 Segment;
typedef Rep::Circle_2
Circle_2;
typedef CGAL::CORE_algebraic_number_traits Nt_traits;
typedef CGAL::Arr_conic_traits_2<Rep, Rep, Nt_traits> Traits_2;
typedef Traits_2::Curve_2
Conic_arc_2;
In the main function I have:
double x, y;
double cx, cy, x1, y1, x2, y2;
Circle_2 Circ2;

fin >> cx >> cy;
fin >> x1 >> y1 >> x2 >> y2;
double r2 = pow(x2 - cx, 2) + pow(y2 - cy, 2);
Circ2( Point_2(cx, cy), r2 ); // EE RR RR OO RR

Maybe try the following instead ?

Circ2 = Circle_2( Point_2(cx, cy), r2 );

I got this error at last line:
error C2064: term does not evaluate to a function taking 2 arguments
Where did I wrong?




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



Archive powered by MHonArc 2.6.16.

Top of Page