Is a Point Inside or Outside a Regular 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 determines whether a point is inside or outside a polygon by summing the angles between adjacent vertices and the point in question. If the sum is (approximately) , the point is inside; otherwise, it is outside.

Contributed by: Jon Perry (March 2011)
Open content licensed under CC BY-NC-SA


Snapshots


Details

For more information, see the Wikipedia entry for Point in polygon.



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