Subject: CGAL users discussion list
List archive
- From: Calvin Lim <>
- To: <>
- Subject: RE: [cgal-discuss] Move a point
- Date: Wed, 3 Sep 2008 16:13:41 +0000
- Importance: Normal
I used to have this problem alot. the solution is... my_Point = Point_2(10,10) ; not the most elegant of solutions.. .but this is how i do it.. if there is a better way.. i really hope to know. > Date: Wed, 3 Sep 2008 18:02:53 +0200 > From: > To: > Subject: [cgal-discuss] Move a point > > 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? > > Thanks, > Michael > -- > You are currently subscribed to cgal-discuss. > To unsubscribe or access the archives, go to > https://lists-sop.inria.fr/wws/info/cgal-discuss Chat online and in real-time with friends and family! Windows Live Messenger |
- [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.