---
title: GCQuaternion
framework: gamecontroller
role: symbol
role_heading: Structure
path: gamecontroller/gcquaternion
---

# GCQuaternion

A quaternion that represents a controller’s measurement of attitude.

## Declaration

```swift
struct GCQuaternion
```

## Topics

### Getting Quaternion Values

- [x](gamecontroller/gcquaternion/x.md)
- [y](gamecontroller/gcquaternion/y.md)
- [z](gamecontroller/gcquaternion/z.md)
- [w](gamecontroller/gcquaternion/w.md)

### Initializers

- [init()](gamecontroller/gcquaternion/init().md)
- [init(x:y:z:w:)](gamecontroller/gcquaternion/init(x:y:z:w:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Sendable](swift/sendable.md)

## See Also

### Accessing Attitude and Rotation Data

- [attitude](gamecontroller/gcmotion/attitude.md)
- [rotationRate](gamecontroller/gcmotion/rotationrate.md)
- [GCRotationRate](gamecontroller/gcrotationrate.md)
- [GCEulerAngles](gamecontroller/gceulerangles.md)
