<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCQuaternion",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:@S@GCQuaternion"
  },
  "title" : "GCQuaternion"
}
-->

# GCQuaternion

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

```
struct GCQuaternion
```

## Topics

### Getting Quaternion Values

[`x`](/documentation/GameController/GCQuaternion/x)

The value for the x-axis of the quaternion.

[`y`](/documentation/GameController/GCQuaternion/y)

The value for the y-axis of the quaternion.

[`z`](/documentation/GameController/GCQuaternion/z)

The value for the z-axis of the quaternion.

[`w`](/documentation/GameController/GCQuaternion/w)

The value for the w-axis of the quaternion.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)