Is a Point Inside or Outside a Regular Polygon?

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

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

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