Ray-casting algorithm: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: changed/added comments and whitespace, changed indentations.)
m (added whitespace to the task's preamble.)
Line 2: Line 2:
{{Wikipedia|Point_in_polygon}}
{{Wikipedia|Point_in_polygon}}


<br>
Given a point and a polygon, check if the point is inside or outside the polygon using the [[wp:Point in polygon#Ray casting algorithm|ray-casting algorithm]].
Given a point and a polygon, check if the point is inside or outside the polygon using the [[wp:Point in polygon#Ray casting algorithm|ray-casting algorithm]].