On 2014-04-20, Ed Scheinerman <edward.scheiner...@gmail.com> wrote:
> Does Sage have, or is there a package I can add, that implements basic 
> plane geometry objects and operations. The sort of thing I'd like to do is, 
> given two points, construct the line that contains them. Or given two 
> circles, intersect them yielding 0, 1, or 2 points. Given a set of points, 
> determine which are on the convex hull, construct that polygon, and return 
> its area. 

for the convex hull and area, you can use Polyhedron(). E.g.
sage: p=Polyhedron(vertices = [[1, 1], [0, 0], [1, -1], [-1, 1], [-1, -1]])
sage: p.volume()
4
sage: p.vertices()
(A vertex at (-1, -1),
 A vertex at (-1, 1),
 A vertex at (1, 1),
 A vertex at (1, -1))


-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to