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

# init(x:y:z:)

Creates a new vector from the given elements.

## Declaration

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

## Parameters

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