<h2 id="calculaterotation">calculateRotation</h2>

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

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

Returns the rotation, in degrees, of the pointers between the
[PointerInputChange.previousPosition] and [PointerInputChange.position] states. Only the pointers
that are down in both previous and current states are considered.

Example Usage: