getPreviousSpanX

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

Returns previous X distance between pointers in pixels.

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 X distance between pointers in pixels.

See also

pointerIdList

Parameters

firstPointerIndex

one of pointers indexes

secondPointerIndex

one of pointers indexes