Subject: CGAL users discussion list
List archive
- From: Sebastien Loriot <>
- To:
- Subject: Re: [cgal-discuss] Move a point
- Date: Wed, 3 Sep 2008 18:11:14 +0200
On Wednesday 03 September 2008 06:02:53 pm Michael Schmidt wrote:
> Hi list,
>
> actually this sounds like a pretty easy problem, but I don't have a clue
> how to solve it.
>
> I have a code like this and need to move the point to another position,
> thus I
> have to change the point's coordinates.
>
> typedef CGAL::Cartesian<double> K;
> typedef K::Point_2 Point_2;
>
> Point_2 my_Point(0,0);
>
> // This is how I'd like to hande it:
> my_Point.setX(10);
> my_Point.setY(10);
>
> But I can't find any access functions for a Point_2.
>
> Is there a way to do this, without changing one of the CGAL's files?
AFAIK, CGAL Kernel's object are non-modifiable.
One way to do it is my_Point=Point_2(10,10);
Sebastien.
>
> Thanks,
> Michael
- [cgal-discuss] Move a point, Michael Schmidt, 09/03/2008
- Re: [cgal-discuss] Move a point, Sebastien Loriot, 09/03/2008
- RE: [cgal-discuss] Move a point, Calvin Lim, 09/03/2008
- Re: [cgal-discuss] Move a point, Samuel Hornus, 09/03/2008
Archive powered by MHonArc 2.6.16.