TESTER

get_nearest

get_nearest(points, center)

Return the point of a polygon closest to a given reference point [cx,cy].

Syntaxe

var nearest = get_nearest(points=[x0,y0,x1,y1,...], center=[cx,cy])

Arguments

NameRequiredDefaultDescription
pointsyes-List of points [x0,y0,x1,y1,...]
centeryes-List of 1 point [cx,cy]