PolysectRay[point, point, number, list]
-2 points to define the ray
-number of sides of the polygon
-Polygon vertex list (same list you would use to define a Polygon)
Output:
-the intersection points (list)
-segments showing which intervals fall inside the polygon (using the same definition as IsInRegion[])
-list of pairs (a,b)
a, the intersection time (distance from the ray origin )
b, which edge (1... n) is intersected at that time.
____
Construction: http://www.geogebratube.org/material/show/id/96427
Example: http://www.geogebratube.org/material/show/id/96425