<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/UnitPoint3D/init(x:y:z:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI11UnitPoint3DV1x1y1zAC14CoreFoundation7CGFloatV_A2Itcfc"
  },
  "title" : "init(x:y:z:)"
}
-->

# init(x:y:z:)

Creates a 3D unit point with the specified offsets.

```
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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)