Vector3D: Difference between revisions
Jump to navigation
Jump to search
m (example formatting) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
Represents a 3-dimensional vector in space. | Represents a 3-dimensional vector in space. | ||
A '''[[vectorNormalized|normalised]]''' vector means that each value is within range -1..+1. | |||
The return array can be processed-converted into degrees as follows: | The return array can be processed-converted into degrees as follows: | ||
<sqf> | |||
_vDir = player weaponDirection (primaryWeapon player); | |||
_aDir = _vDir # 0 atan2 _vDir # 1; | |||
</sqf> | |||
[[Category: Arrays]] | [[Category: Arrays]] |
Latest revision as of 12:14, 20 February 2023
Format:
[x, y, z]
Description:
Represents a 3-dimensional vector in space.
A normalised vector means that each value is within range -1..+1.
The return array can be processed-converted into degrees as follows: