isUp

private fun isUp(angle: Double): Boolean

Checks if the angle formed between the points defined by the coordinates of the pertinent MotionEvents is indicative of an upward gesture.

An upward gesture is registered if the angle is in [1.25π, 1.75π).

Return

true if the angle formed between the points defined by the coordinates of the pertinent MotionEvents is indicative of an upward gesture.

Parameters

angle

Angle (in radians) formed between the points defined by the coordinates of the pertinent MotionEvents.