vectorNormalized

From Bohemia Interactive Community
Revision as of 23:05, 6 July 2014 by Killzone Kid (talk | contribs) (Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.24|= Game version ________________...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns normalized vector (unit vector, vectorMagnitude = 1) of given vector. If given vector is 0 result is a 0 vector as well.
Groups:
Uncategorised

Syntax

Syntax:
vectorNormalized vector
Parameters:
vector: Array
Return Value:
Array

Examples

Example 1:
vectorNormalized [12345,7890,38383]; //[0.300481,0.192045,0.934254] vectorMagnitude [0.300481,0.192045,0.934254]; //1

Additional Information

See also:
vectorDiffvectorCrossProductvectorDotProductvectorCosvectorMagnitudevectorMagnitudeSqrvectorMultiplyvectorDistancevectorDistanceSqrvectorDirvectorUpsetVectorDirsetVectorUpsetVectorDirAndUpvectorFromTo

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section