MIST getUnitVec

From DCS World Wiki - Hoggitworld.com


mist.vec.getUnitVec

Added with: Mist 2.0
Description
Returns the unit vector of a vec3 point
Syntax
vec3 mist.vec.getUnitVec(vec3 vector )
Valid Input Values:
vec3
Return value:
vec3
Return example:
Usage Examples:
Notes:
Related Functions
add, sub, scalar_mult, dp, cp, mag, getUnitVec, rotateVec2, get2DDist, get3DDist, getHeadingPoints

Scripting Engine

MIST Root Page