---
title: "TransformOrigin"
description: "Constructs a [TransformOrigin] from the given fractional values from the Layer's width and height"
type: "function"
---

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


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


```kotlin
fun TransformOrigin(pivotFractionX: Float, pivotFractionY: Float): TransformOrigin
```


Constructs a `TransformOrigin` from the given fractional values from the Layer's width and height



