Vector2D

From Bohemia Interactive Community
Revision as of 15:47, 6 January 2026 by Lou Montana (talk | contribs) (Some wiki formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Category: Arrays

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:

_vDir = getMarkerPos "myMarker"; _aDir = _vDir # 0 atan2 _vDir # 1;