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


<a id='references'></a>


<h2 id="calculatezoom">calculateZoom</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun PointerEvent.calculateZoom(): Float
```


Uses the change of the centroid size between the `PointerInputChange.previousPosition` and
`PointerInputChange.position` to determine how much zoom was intended.

Example Usage: