> Is there already a handy way to get the same result in Sage? 
>

> You can image other useful methods attached to a graphics object.
>

For 2d lines, it returns a Graphics object which has a length: 

sage: l = line([(1,2),(10,20)])
sage: k = line([(10,20),(100,200)])
sage: len(l)
1
sage: len(k)
1

But currently, this length corresponds to the number of graphics primitives:

sage: repr(l+k)
'Graphics object consisting of 2 graphics primitives'
sage: len(l+k)
2


-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/5467a594-3006-442f-b22d-1c9cf3d6692en%40googlegroups.com.

Reply via email to