Distance of a Point to a Polygon
Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.
This Demonstration shows the numerical distance from a point to a polygon, namely the smallest distance from the point to any of the points of the sides of the polygon. You can drag the red disks to adjust the polygon or the point. The distance is the length of the blue segment in case the "line" option is chosen (normalized at the start to unity as shown). In the case of the "circle" option, the distance is the radius of the smallest circle centered at the chosen point and tangent to the polygon.
Contributed by: Jaime Rangel-Mondragon (March 2011)
Open content licensed under CC BY-NC-SA
"Distance of a Point to a Polygon"
Wolfram Demonstrations Project
Published: March 7 2011