getPreviousSpan

open fun getPreviousSpan(firstPointerIndex: Int, secondPointerIndex: Int): Float

Returns the previous distance between the two pointers forming the gesture in progress.

Pointers are sorted by the time they were placed on the screen until lifted up. This means that index 0 will reflect the oldest added, still active pointer and index (getPointersCount - 1) will reflect the latest added, still active pointer.

The order of parameters is irrelevant.

Return

Previous distance between pointers in pixels.

See also

pointerIdList

Parameters

firstPointerIndex

one of pointers indexes

secondPointerIndex

one of pointers indexes