---
title: "init(x:y:z:)"
framework: metal
role: symbol
role_heading: Initializer
path: "metal/mtlorigin/init(x:y:z:)"
---

# init(x:y:z:)

Initializes a new origin with the specified coordinates.

## Declaration

```swift
init(x: Int, y: Int, z: Int)
```

## Parameters

- `x`: The x coordinate.
- `y`: The y coordinate.
- `z`: The z coordinate.

## See Also

### Creating origin points

- [init()](metal/mtlorigin/init().md)
- [MTLOriginMake(_:_:_:)](metal/mtloriginmake(_:_:_:).md)
