Vector2D: Difference between revisions
Category: Arrays
(Created page with "'''Format:''' [x, y] '''Description:''' Represents a 2-dimensional vector in space. A '''normalised''' vector means that each value is within range -1..+1. See also Vector3D. Category: Arrays") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
| Line 1: | Line 1: | ||
{{Hatnote|See also [[Vector3D]].}} | |||
'''Format:''' | '''Format:''' | ||
[x, y] | [x, y] where x and y are [[Number]]s | ||
| Line 10: | Line 11: | ||
A '''[[vectorNormalized|normalised]]''' vector means that each value is within range -1..+1. | A '''[[vectorNormalized|normalised]]''' vector means that each value is within range -1..+1. | ||
The return array can be processed-converted into degrees as follows: | |||
<sqf> | |||
_vDir = getMarkerPos "myMarker"; | |||
_aDir = _vDir # 0 atan2 _vDir # 1; | |||
</sqf> | |||
[[Category: Arrays]] | [[Category: Arrays]] | ||
Latest revision as of 15:47, 6 January 2026
ⓘ See also Vector3D.
Format:
[x, y] where x and y are Numbers
Description:
Represents a 2-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: