MIST projectPoint
From DCS World Wiki - Hoggitworld.com
mist.projectPoint
Added with: Mist 4.5 |
Description |
Returns the point projected from the passed point at the passed distance along a given angle. Value returned is either vec2 or vec3 based on the original point passed.
The angle is defined in radians and the distance in meters. |
Syntax |
table mist.projectPoint(table point ,number distance ,number theta ) |
Valid Input Values: |
Return value: |
table |
Return example: |
Usage Examples: |
The following example will return a series of points making up a circle at an interval of 10 degrees with a 1 km radius
local circlePoints = {} for i = 1, 36 do circlePoints[i] = mist.projectPoint(spawnPoint, 1000, math.rad(10*i)) end |
Notes: |
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, |