---
title: "init(x:y:z:w:)"
framework: gamecontroller
role: symbol
role_heading: Initializer
path: "gamecontroller/gcquaternion/init(x:y:z:w:)"
---

# init(x:y:z:w:)

Creates a quaternion structure with the specified values.

## Declaration

```swift
init(x: Double, y: Double, z: Double, w: Double)
```

## Parameters

- `x`: The value for the x-axis.
- `y`: The value for the y-axis.
- `z`: The value for the z-axis.
- `w`: The value for the w-axis.
