<!--
{
  "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/RotationAxis3D/init(x:y:z:)-1x93q",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So16SPRotationAxis3Da7SpatialE1x1y1zABx_xxtcSBRzlufc"
  },
  "title" : "init(x:y:z:)"
}
-->

# init(x:y:z:)

Creates a rotation axis from the specified floating-point values.

```
init<T>(x: T, y: T, z: T) where T : BinaryFloatingPoint
```

## Parameters

`x`

A floating-point value that specifies the x-coordinate value.

`y`

A floating-point value that specifies the y-coordinate value.

`z`

A floating-point value that specifies the z-coordinate value.

---

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)