You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a polygon that consists of an array of points. I have a point that is outside this polygon. how can I find the closest distance between a point and a polygon?
I have one option so far:
1.Calculate the distance between each polygon point and the outer point
2. find the nearest point, find an adjacent one for it (line).
3. Calculate the distance between the line and the outside point(using distanceToLine).
but it seems complicated to me. maybe there is an easier solution?
The text was updated successfully, but these errors were encountered:
I have a polygon that consists of an array of points. I have a point that is outside this polygon. how can I find the closest distance between a point and a polygon?
I have one option so far:
1.Calculate the distance between each polygon point and the outer point
2. find the nearest point, find an adjacent one for it (line).
3. Calculate the distance between the line and the outside point(using distanceToLine).
but it seems complicated to me. maybe there is an easier solution?
The text was updated successfully, but these errors were encountered: