<!--
{
  "availability" : [
    "*: -",
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/EulerAngles/init(_:_:_:order:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So13SPEulerAnglesa7SpatialE___5orderABSo7SPAnglea_A2FSo0A10AngleOrderatcfc"
  },
  "title" : "init(_:_:_:order:)"
}
-->

# init(_:_:_:order:)

Creates a new Euler angles structure from the specified angle structures and order.

```
init(_ x: Angle2D, _ y: Angle2D, _ z: Angle2D, order: EulerAngles.Order)
```

## Parameters

`x`

The first angle.

`y`

The second angle.

`z`

The third angle.

`order`

The Euler angle order.

## Discussion

> Note: In Swift, use [``EulerAngles.Order``](https://developer.apple.com/documentation/spatial/eulerangles/order-swift.typealias) in place of `__SPEulerAngleOrder`.

---

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)