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
| Name | Required | Default | Description |
|---|---|---|---|
points | yes | - | List of points [x0,y0,x1,y1,...] |
center | yes | - | List of 1 point [cx,cy] |