<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/RotationAxis3DFloat/init(x:y:z:)-273jp",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So21SPRotationAxis3DFloata7SpatialE1x1y1zABSf_S2ftcfc"
  },
  "title" : "init(x:y:z:)"
}
-->

# init(x:y:z:)

Returns a rotation axis from the specified values.

```
init(x: Float = 0, y: Float = 0, z: Float = 0)
```

## Parameters

`x`

The rotation value on the x-axis.

`y`

The rotation value on the y-axis.

`z`

The rotation value on the z-axis.

---

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)