PLAYGROUND (experimental)

polygon_sortangles

Sort the points of a polygon in order around its centroid based on angles.
polygon_sortangles(
    points
) -> NULL || List of points

Sort the points of a polygon in order around its centroid based on angles.

Syntaxe

var result = polygon_sortangles(points=[x0,y0,x1,y1,...])

Arguments

NameTypeRequiredDefaultDescription
pointsyes-List of points [x0,y0,x1,y1,...]