<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=MIST_circleInPoly</id>
		<title>MIST circleInPoly - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=MIST_circleInPoly"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_circleInPoly&amp;action=history"/>
		<updated>2026-04-25T10:38:51Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.hoggitworld.com/index.php?title=MIST_circleInPoly&amp;diff=13942&amp;oldid=prev</id>
		<title>Grimes: Created page with &quot;{{Mission Scripting  |fName= mist.shape.circleInPoly|  |vNum = Mist 4.5  |desc= Determines whether or not the passed circle is inside of the second polygon.  Optional full ent...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_circleInPoly&amp;diff=13942&amp;oldid=prev"/>
				<updated>2022-02-11T21:57:28Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Mission Scripting  |fName= mist.shape.circleInPoly|  |vNum = Mist 4.5  |desc= Determines whether or not the passed circle is inside of the second polygon.  Optional full ent...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Mission Scripting&lt;br /&gt;
&lt;br /&gt;
|fName= mist.shape.circleInPoly|&lt;br /&gt;
&lt;br /&gt;
|vNum = Mist 4.5&lt;br /&gt;
&lt;br /&gt;
|desc= Determines whether or not the passed circle is inside of the second polygon. &lt;br /&gt;
Optional full entry requires the entire shape to be inside of the other shape to return true. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|rtnType= boolean&lt;br /&gt;
&lt;br /&gt;
|reqType1= table&lt;br /&gt;
|reqName1= circle&lt;br /&gt;
|reqType2= table&lt;br /&gt;
|reqName2= polygon&lt;br /&gt;
|reqType3= &lt;br /&gt;
&lt;br /&gt;
|optType1= boolean&lt;br /&gt;
&lt;br /&gt;
|optName1= full&lt;br /&gt;
&lt;br /&gt;
|optType2=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|varExamples= Circle: table with point and radius entries&lt;br /&gt;
Poly: table of 3 points or more. &lt;br /&gt;
&lt;br /&gt;
|rtnExamples= true or false&lt;br /&gt;
&lt;br /&gt;
|example= The following would return true if an artillery unit with a range of 30km is able to fire on a point within a polygon defined by the group &amp;quot;village&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    local arty= Unit.getByName('arty'):getPoint()&lt;br /&gt;
    arty.radius = 30000&lt;br /&gt;
    local zone = mist.getGroupPoints('village')&lt;br /&gt;
    if mist.shape.circleInPoly(arty, zone ) == true then&lt;br /&gt;
      trigger.action.outText(&amp;quot;The enemy artillery is now in range of that town we need to protect&amp;quot;, 20)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|notes=  &lt;br /&gt;
&lt;br /&gt;
|funcs= {{listOfMistShapeFuncs}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
[[Category:MIST|circleInPoly]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>