---
name: "Vector3D"
type: topic
aliases: ["Vector"]
source: https://community.bistudio.com/wiki/Vector3D
revid: 377906
updated: 2026-01-06T14:47:33Z
---

# Vector3D

*See also Vector2D.*
**Format:**

[x, y, z] where x, y and z are [Number](../topics/Number.md)s

**Description:**

Represents a 3-dimensional vector in space.

A **[normalised](../commands/vectorNormalized.md)** vector means that each value is within range -1..+1.

The return array can be processed-converted into degrees as follows:

```sqf
_vDir = player weaponDirection primaryWeapon player;
_aDir = _vDir # 0 atan2 _vDir # 1;
```

<sub>Source: [BI Community Wiki — Vector3D](https://community.bistudio.com/wiki/Vector3D) (revision 377906).</sub>
