Macaulay2 » Documentation
Packages » Graphics :: polygon(List)
next | previous | forward | backward | up | index | toc

polygon(List) -- a polygon from a list of points

Description

All the points must be of the same class, either Point2D or Point3D.

i1 : L={point(2.1, 3.),point(.4, 4.6),point(3.1,5.)}

o1 = {Point2D{2, 3}, Point2D{0, 5}, Point2D{3, 5}}

o1 : List
i2 : polygon(L)

o2 = Polygon2D{Point2D{2, 3}, Point2D{0, 5}, Point2D{3, 5}}

o2 : Polygon2D

Ways to use this method:


The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Graphics.m2:787:0.