Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Move a point

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Move a point


Chronological Thread 
  • From: Samuel Hornus <>
  • To:
  • Subject: Re: [cgal-discuss] Move a point
  • Date: Wed, 3 Sep 2008 18:17:34 +0200
  • Organization: INRIA

"Michael Schmidt"
<>
wrote:
> Is there a way to do this, without changing one of the CGAL's files?

Yes, you can do something like:

typedef CGAL::Cartesian<double> K;
typedef K::Point_2 Point_2;
typedef K::Vector_2 Vector_2;
Point_2 my_Point(0,0);
Vector_2 d(1,2);
my_point = my_point + d;

CGAL's Point class(es) do not allow modification of individual
coordinates.
Regards,
sam



Archive powered by MHonArc 2.6.16.

Top of Page