vectorFromTo

From Bohemia Interactive Community
Revision as of 22:54, 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:
Unit vector, equal to direction from vector1 to vector2. In other words this command produces vectorNormalized between given 2 points.
Groups:
Uncategorised

Syntax

Syntax:
vector1 vectorFromTo vector2
Parameters:
vector1: Array
vector2: Array
Return Value:
Array

Examples

Example 1:
[1,2,3] vectorFromTo [4,5,6]; //[0.57735,0.57735,0.57735] //is the same as vectorNormalized ([1,2,3] vectorDiff [4,5,6]); //[0.57735,0.57735,0.57735]

Additional Information

See also:
vectorDiffvectorCrossProductvectorDotProductvectorCosvectorMagnitudevectorMagnitudeSqrvectorMultiplyvectorDistancevectorDistanceSqrvectorDirvectorUpsetVectorDirsetVectorUpsetVectorDirAndUpvectorNormalized

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