<!--
{
  "availability" : [
    "*: -",
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/Rotation3D/init(axis:angle:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So12SPRotation3Da7SpatialE4axis5angleABSo16SPRotationAxis3Da_So7SPAngleatcfc"
  },
  "title" : "init(axis:angle:)"
}
-->

# init(axis:angle:)

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

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

## Parameters

`axis`

The rotation axis.

`angle`

The rotation angle.

---

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)