<!--
{
  "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/GCEulerAngles/init(pitch:yaw:roll:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "s:So13GCEulerAnglesa5pitch3yaw4rollABSd_S2dtcfc"
  },
  "title" : "init(pitch:yaw:roll:)"
}
-->

# init(pitch:yaw:roll:)

Creates the structure with the specified values.

```
init(pitch: Double, yaw: Double, roll: Double)
```

## Parameters

`pitch`

The rotation around the x-axis that passes through the controller from side to side.

`yaw`

The rotation around the y-axis that runs vertically through the controller.

`roll`

The rotation around the z-axis that passes through the controller from its top to bottom.

---

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)