Skip to Content.
Sympa Menu

cgal-discuss - small problem with "Circle_2"

Subject: CGAL users discussion list

List archive

small problem with "Circle_2"


Chronological Thread 
  • From: Mahmood Naderan <>
  • To: CGAL discuss <>
  • Subject: small problem with "Circle_2"
  • Date: Sat, 19 Apr 2008 01:04:16 -0700 (PDT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=rJ72jH7iNQlQqJEPkDthzqAWPAPPlgYHCLNwmoKpoGiAGL2jsg7JqiNzWQTGSfVev2pJkHkO/Xj6Dp4tWmFmA+l4odlu45biIaRt76KnaVCwAXJYEMvNQfwlGqRym0GB6YdZHzDw0UAncj3PSp/9qZ9qcb1fS0clUkVGfm6rPpM=;

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
I got this error at last line:
error C2064: term does not evaluate to a function taking 2 arguments
Where did I wrong?
-------------------
Mahmood Naderan
http://ce.sharif.edu/~m_naderan




____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ




Archive powered by MHonArc 2.6.16.

Top of Page