---
title: x
framework: spatial
role: symbol
role_heading: Instance Property
path: spatial/vector3d/x
---

# x

The x-element value.

## Declaration

```swift
var x: Double { get set }
```

## See Also

### Inspecting a vector’s properties

- [y](spatial/vector3d/y.md)
- [z](spatial/vector3d/z.md)
- [vector](spatial/vector3d/vector.md)
