<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/Vector3DFloat/init(x:y:z:)-1h79g",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So15SPVector3DFloata7SpatialE1x1y1zABx_xxtcSBRzlufc"
  },
  "title" : "init(x:y:z:)"
}
-->

# init(x:y:z:)

Returns a new vector from the doubleing-point values.

```
init<T>(x: T, y: T, z: T) where T : BinaryFloatingPoint
```

## Discussion> note: This function is provided as a convenience. All Spatial storage and calculations are single-precision.

---

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)