Distance of a Point to a Polygon

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

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


Snapshots


Details

detailSectionParagraph


Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send