Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How can I assign point's coordinates to some variable of type double?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How can I assign point's coordinates to some variable of type double?


Chronological Thread 
  • From: Eric Berberich <>
  • To:
  • Subject: Re: [cgal-discuss] How can I assign point's coordinates to some variable of type double?
  • Date: Sun, 09 Mar 2008 10:57:01 +0100

Olivier Devillers wrote:

double x=p.x();
double x = p.x().to_double();


I might be that case that CGAL::to_double(p.x()) is even more general. The member to_double is number type specific (here probably CORE::BigRat), while the global function CGAL::to_double is expected to work for all supported number types.

eriC




Archive powered by MHonArc 2.6.16.

Top of Page