---
title: "init(x:y:z:)"
framework: spatial
role: symbol
role_heading: Initializer
path: "spatial/rotationaxis3dfloat/init(x:y:z:)-273jp"
---

# init(x:y:z:)

Returns a rotation axis from the specified values.

## Declaration

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