Difference between revisions of "MIST mag"
From DCS World Wiki - Hoggitworld.com
(No difference)
|
Latest revision as of 23:28, 13 April 2018
mist.vec.mag
| Added with: Mist 1.0 |
| Description |
| Returns the magnitude of vec |
| Syntax |
| vec3 mist.vec.mag(vec3 vector1 ) |
| Valid Input Values: |
| Return value: |
| vec3 |
| Return example: |
| Usage Examples: |
| local unit = Unit.getByName("Hawg11")
local speed = mist.vec.mag(unit:getVelocity()) |
| Notes: |
| Related Functions |
| Vectors: add, sub, scalar_mult, dp, cp, mag, getUnitVec, rotateVec2, get2DDist, get3DDist, getHeadingPoints |
