---
title: x
framework: vision
role: symbol
role_heading: Instance Property
path: vision/vnvector/x
---

# x

A signed projection that indicates the vector’s direction on the x-axis.

## Declaration

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

## See Also

### Inspecting a Vector

- [length](vision/vnvector/length.md)
- [r](vision/vnvector/r.md)
- [theta](vision/vnvector/theta.md)
- [squaredLength](vision/vnvector/squaredlength.md)
- [y](vision/vnvector/y.md)
- [dotProduct(of:vector:)](vision/vnvector/dotproduct(of:vector:).md)
- [unitVector(for:)](vision/vnvector/unitvector(for:).md)
