---
title: "Offset"
description: "Constructs an Offset from the given relative [x] and [y] offsets"
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
inline fun Offset(x: Float, y: Float) = Offset(packFloats(x, y))
```


Constructs an Offset from the given relative `x` and `y` offsets



