POLYGONEDGES Return the edges of a simple or multiple polygon.

   EDGES = polygonEdges(POLY)
   Return the set of edges of the polygon specified by POLY. POLY may be
   either a simple polygon given as a N-by-2 array of vertices, or a
   multiple polygon given by a cell array of linear rings, each ring being
   given as N-by-2 array of vertices.


   Example
     poly = [50 10;60 10;60 20;50 20];
     polygonEdges(poly)
     ans =
         50    10    60    10
         60    10    60    20
         60    20    50    20
         50    20    50    10

   See also
     polygons2d, polygonVertices

Package: matgeom