---
title: "init(_:_:_:order:)"
framework: spatial
role: symbol
role_heading: Initializer
path: "spatial/eulerangles/init(_:_:_:order:)"
---

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

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

## Declaration

```swift
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

Discussion note: In Swift, use EulerAngles.Order in place of __SPEulerAngleOrder.

## See Also

### Deprecated symbols

- [init(eye:target:up:)](spatial/rotation3d/init(eye:target:up:).md)
- [init(axis:angle:)](spatial/rotation3d/init(axis:angle:).md)
- [init(quaternion:)](spatial/rotation3d/init(quaternion:)-6ajmn.md)
- [zero](spatial/rotation3d/zero.md)
- [isZero](spatial/rotation3d/iszero.md)
