Hi,
I would like something like this to work:
L = line([ some 2d points ])
L.translate(1, -1)
I don't find how to transform a line to a list of points.
But L[0] seens almost right (when L is a line)
You apply the function lambda (x,y):(x+1,y+1) to each point.
So map (lambda(x,y):(x+1,y+1), L[0]) is a list of new points.
And line (map (lambda(x,y):(x+1,y+1), L[0])) is the new line.
I hope I help you a little.
Francois
--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org