---
title: "init(x:y:z:)"
framework: spatial
role: symbol
role_heading: Initializer
path: "spatial/vector3dfloat/init(x:y:z:)-8dkie"
---

# init(x:y:z:)

Returns a vector from the specified values.

## Declaration

```swift
init(x: Float = 0, y: Float = 0, z: Float = 0)
```

## Parameters

- `x`: The first element of the vector.
- `y`: The second element of the vector.
- `z`: The third element of the vector.
