MIST getAvgPoint
From DCS World Wiki - Hoggitworld.com
mist.utils.getAvgPoint
Added with: Mist 4.1 |
Description |
Returns the average position of the passed points within a table. Passed points can be vec2, vec3, or in WP format. |
Syntax |
table mist.utils.getAvgPoint(table points ) |
Valid Input Values: |
table with vec2/3 or WP tables indexed numerically
{1 = vec3, 2 = vec3} |
Return value: |
table |
Return example: |
vec3 {x, y, z} |
Usage Examples: |
A script adds the impact point of weapons to a table.
local avgHitPos = mist.getAvgPoint(impactingTableHere) |
Notes: |
Functionally similar to mist.getAvgPos. |
Related Functions |
makeUnitTable, getRandPointInCircle, getRandomPointInZone, getRandomPointInPoly, isTerrainValid, terrainHeightDiff, getUnitsInZones, getUnitsInMovingZones, pointInPolygon, getUnitsInPolygon, getDeadMapObjsInZones, getDeadMapObjsInPolygonZone, getUnitsLOS, random, randomizeNumTable, getAvgPoint, getQFE, getWindBearingAndVel, getPathLength, getPathInSegments, getPointAtDistanceOnPath, projectPoint, getGroupsByAttribute, , getUnitsByAttribute, mapValue, |