{"name":"Vector3D","title":"Vector3D","type":"topic","url":"https://community.bistudio.com/wiki/Vector3D","revid":377906,"updated":"2026-01-06T14:47:33Z","aliases":["Vector"],"markdown":"*See also Vector2D.*\n**Format:**\n\n[x, y, z] where x, y and z are Numbers\n\n**Description:**\n\nRepresents a 3-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 = player weaponDirection primaryWeapon player;\n_aDir = _vDir # 0 atan2 _vDir # 1;\n```","sections":[{"heading":null,"level":1,"markdown":"*See also Vector2D.*\n**Format:**\n\n[x, y, z] where x, y and z are Numbers\n\n**Description:**\n\nRepresents a 3-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 = player weaponDirection primaryWeapon player;\n_aDir = _vDir # 0 atan2 _vDir # 1;\n```"}],"categories":["Arrays"],"groups":["Scripting"]}