---
title: "init(x:y:z:)"
framework: spatial
role: symbol
role_heading: Initializer
path: "spatial/rotationaxis3d/init(x:y:z:)-3z5nm"
---

# init(x:y:z:)

Creates a rotation axis from the specified double-precision values.

## Declaration

```swift
init(x: Double = 0, y: Double = 0, z: Double = 0)
```

## Parameters

- `x`: A double-precision value that specifies the x-coordinate value.
- `y`: A double-precision value that specifies the y-coordinate value.
- `z`: A double-precision value that specifies the z-coordinate value.

## See Also

### Creating a 3D rotation axis structure

- [init()](spatial/rotationaxis3d/init().md)
- [init(_:)](spatial/rotationaxis3d/init(_:)-96si4.md)
- [init(_:)](spatial/rotationaxis3d/init(_:)-804sx.md)
- [init(vector:)](spatial/rotationaxis3d/init(vector:).md)
- [init(_:)](spatial/rotationaxis3d/init(_:)-2zdal.md)
- [init(x:y:z:)](spatial/rotationaxis3d/init(x:y:z:)-1x93q.md)
