---
title: x
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/unitpoint3d/x
---

# x

The normalized distance from the origin to the point in the horizontal direction.

## Declaration

```swift
var x: CGFloat
```

## See Also

### Getting the point’s coordinates

- [y](swiftui/unitpoint3d/y.md)
- [z](swiftui/unitpoint3d/z.md)
