---
title: "init(axis:angle:)"
framework: spatial
role: symbol
role_heading: Initializer
path: "spatial/rotation3d/init(axis:angle:)"
---

# init(axis:angle:)

Creates a rotation structure with the specified axis and the specified angle from Spatial structures.

## Declaration

```swift
init(axis: RotationAxis3D, angle: Angle2D)
```

## Parameters

- `axis`: The rotation axis.
- `angle`: The rotation angle.

## See Also

### Deprecated symbols

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