---
title: "init(ix:iy:iz:r:)"
framework: simd
role: symbol
role_heading: Initializer
path: "simd/simd_quatd/init(ix:iy:iz:r:)"
---

# init(ix:iy:iz:r:)

Creates a new quaternion from four scalar values that specify the imaginary and real parts.

## Declaration

```swift
init(ix: Double, iy: Double, iz: Double, r: Double)
```

## Parameters

- `ix`: The first component of the imaginary part.
- `iy`: The second component of the imaginary part.
- `iz`: The third component of the imaginary part.
- `r`: The real part.

## See Also

### Initializing a quaternion

- [init()](simd/simd_quatd/init().md)
- [init(vector:)](simd/simd_quatd/init(vector:).md)
- [init(_:)](simd/simd_quatd/init(_:)-791zk.md)
- [init(_:)](simd/simd_quatd/init(_:)-5vcd5.md)
- [init(angle:axis:)](simd/simd_quatd/init(angle:axis:).md)
- [init(from:to:)](simd/simd_quatd/init(from:to:).md)
- [init(real:imag:)](simd/simd_quatd/init(real:imag:).md)
