{"name":"Vector2D","title":"Vector2D","type":"topic","url":"https://community.bistudio.com/wiki/Vector2D","revid":377905,"updated":"2026-01-06T14:47:02Z","aliases":[],"markdown":"*See also Vector3D.*\n\n---\n\n**Format:**\n\n[x, y] where x and y are Numbers\n\n**Description:**\n\nRepresents a 2-dimensional vector in space.\n\nA **normalised** vector means that each value is within range -1..+1.\n\nThe return array can be processed-converted into degrees as follows:\n\n```sqf\n_vDir = getMarkerPos \"myMarker\";\n_aDir = _vDir # 0 atan2 _vDir # 1;\n```","sections":[{"heading":null,"level":1,"markdown":"*See also Vector3D.*\n\n---\n\n**Format:**\n\n[x, y] where x and y are Numbers\n\n**Description:**\n\nRepresents a 2-dimensional vector in space.\n\nA **normalised** vector means that each value is within range -1..+1.\n\nThe return array can be processed-converted into degrees as follows:\n\n```sqf\n_vDir = getMarkerPos \"myMarker\";\n_aDir = _vDir # 0 atan2 _vDir # 1;\n```"}],"categories":["Arrays"],"groups":["Scripting"]}