---
title: "init(x:y:z:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/unitpoint3d/init(x:y:z:)"
---

# init(x:y:z:)

Creates a 3D unit point with the specified offsets.

## Declaration

```swift
init(x: CGFloat, y: CGFloat, z: CGFloat)
```

## Parameters

- `x`: The normalized distance from the origin to the point in the horizontal dimension.
- `y`: The normalized distance from the origin to the point in the vertical dimension.
- `z`: The normalized distance from the origin to the point in the depth dimension.

## Discussion

Discussion Values outside the range [0, 1] project to points outside of a view.

## See Also

### Creating a point

- [init()](swiftui/unitpoint3d/init().md)
