I don't think there is such a thing in Sage right now, but its not
hard to make something like that.  For example:

def pline(rt_list):
    '''
    Returns line segments passing through the given list of points
    in polar coordinates.
    '''
    cart_list = [[x[0]*cos(x[1]),x[0]*sin(x[1])] for x in rt_list]
    return line(cart_list)

I'm not sure what a good name for that would be, "pline" is pretty
bad.

-Marshall Hampton

On Sep 27, 5:07 pm, ablondin <alexandre.blondin.ma...@gmail.com>
wrote:
> I forgot to mention that in polar coordinates, it would be something
> like line([(0.9,theta), (1.1, theta)]) which is more convenient.
> Alexandre Blondin Massé
>
> On 27 sep, 18:02, ablondin <alexandre.blondin.ma...@gmail.com> wrote:
>
> > Hello everybody,
> > I think I'm not looking correctly, but is there any way to use the
> > circle, line, polygon functions to draw 2d graphics using polar
> > coordinates ? I would like to draw things on the unit circle and if it
> > possible, to avoid writing line([(0.9*cos(theta), 0.9*sin(theta),
> > (1.1*cos(theta), 1.1*sin(theta)]) to draw a small segment on the
> > circle at angle theta.
> > Thanks for you help !
> > Alexandre Blondin Massé
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to