---
title: "simd_quaternion(_:_:_:_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/simd_quaternion(_:_:_:_:)-9u5ci"
---

# simd_quaternion(_:_:_:_:)

## Declaration

```swift
func simd_quaternion(_ ix: Float16, _ iy: Float16, _ iz: Float16, _ r: Float16) -> simd_quath
```

## Parameters

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

## Discussion

Discussion Constructs a quaternion from four scalar values.
