Visible Points in a Polygon

Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.
Imagine a guard in a polygonal gallery at night. Only using her flashlight, there are walls she cannot point to from one spot. In this Demonstration, the guard is depicted by a red disk and the gallery by a blue polygon, which can even be self-intersecting. The yellow polygon is the set of all visible points. To vary the figure, drag the red point or the vertices of the gallery. When the guard is not inside the polygon, the set of visible points is sometimes unbounded.
Contributed by: Jaime Rangel-Mondragon (August 2014)
Open content licensed under CC BY-NC-SA
Snapshots
Details
Reference
[1] S. K. Ghosh, Visibility Algorithms in the Plane, Cambridge: Cambridge University Press, 2007.
Permanent Citation
"Visible Points in a Polygon"
http://demonstrations.wolfram.com/VisiblePointsInAPolygon/
Wolfram Demonstrations Project
Published: August 6 2014