Difference between revisions of "MIST circleInCircle"
From DCS World Wiki - Hoggitworld.com
(Created page with "{{Mission Scripting |fName= mist.shape.circleInCircle| |vNum = Mist 4.5 |desc= Determines whether or not the first circle is within or overlaps the second circle. The opti...") |
(No difference)
|
Latest revision as of 21:51, 11 February 2022
mist.shape.circleInCircle
Added with: Mist 4.5 |
Description |
Determines whether or not the first circle is within or overlaps the second circle.
The optional full value if present will return the entire first circle to be inside of the second in order to return true. |
Syntax |
boolean mist.shape.circleInCircle(table circle1 ,table circle2 , boolean full ) |
Valid Input Values: |
Circle: table with point and radius entries |
Return value: |
boolean |
Return example: |
true or false |
Usage Examples: |
The following could determine if the SA-15's weapons range is within the radar coverage of an EWR by distance.
local tor = Unit.getByName('sa15'):getPoint() tor.radius = 15000 local ewr = Unit.getByName('ewr'):getPoint() tor.radius = 320000 if mist.shape.circleInCircle(tor, ewr, true) == true then -- The entire Tor missile range is within the EWRs radar coverage end |
Notes: |
Related Functions |
insideShape, circleInCircle, circleInPoly, polyInPoly, polyInCircle, getPointOnSegment, segmentIntersect |