<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://cmm.ozdeadmeat.com/index.php?action=history&amp;feed=atom&amp;title=PointInPolygon</id>
	<title>PointInPolygon - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://cmm.ozdeadmeat.com/index.php?action=history&amp;feed=atom&amp;title=PointInPolygon"/>
	<link rel="alternate" type="text/html" href="https://cmm.ozdeadmeat.com/index.php?title=PointInPolygon&amp;action=history"/>
	<updated>2026-06-04T14:16:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://cmm.ozdeadmeat.com/index.php?title=PointInPolygon&amp;diff=5814&amp;oldid=prev</id>
		<title>Ozdeadmeat: pointInPolygon – created via PowerShell script (2025-11-11T21:12:08Z)</title>
		<link rel="alternate" type="text/html" href="https://cmm.ozdeadmeat.com/index.php?title=PointInPolygon&amp;diff=5814&amp;oldid=prev"/>
		<updated>2025-11-11T10:12:09Z</updated>

		<summary type="html">&lt;p&gt;pointInPolygon – created via PowerShell script (2025-11-11T21:12:08Z)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:FunctionInfo|fName=          pointInPolygon|fDescription=   Implements the classic &amp;quot;ray‑casting&amp;quot; (even‑odd) algorithm to test whether a 2‑D point lies inside an arbitrary polygon defined by a list of vertices (x, z). The function iterates over each edge of the polygon, toggling the _inside flag whenever the horizontal ray from the point crosses an edge.  It returns true if the point is inside or on the boundary, otherwise false.|parentFile=     cmm.DCSFunctions.lua|syntax=         CMM.pointInPolygon(&amp;lt;TBL&amp;gt;, &amp;lt;TBL&amp;gt;)|return=         boolean|returnDesc=     true if the point is inside the polygon; otherwise false.|example=        local inside = CMM.pointInPolygon({x=5, z=5}, {{x=0,z=0},{x=10,z=0},{x=10,z=10},{x=0,z=10}})|exampleDesc=    The example shows a simple square polygon and checks whether the point (5, 5) lies inside it.  The function will return true for points on or inside the boundary and false otherwise.|related=        |note=           |envType= CMM|par1=         table _point|reqType1=     table|reqName1=     _point|desc1=       Table containing at least x and z coordinates (e.g., {x = 12000, z = -65000}).|par2=         table _polygon|reqType2=     table|reqName2=     _polygon|desc2=       Ordered list of vertex tables each with x and z fields (e.g., {{x=0,z=0},{x=10,z=0},{x=10,z=10},{x=0,z=10}}).}}&lt;/div&gt;</summary>
		<author><name>Ozdeadmeat</name></author>
	</entry>
</feed>