isLeft

private fun isLeft(angle: Double): Boolean

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

A left gesture is registered if the angle is in [0, 0.25π) or [1.75π, 2π).

Return

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

Parameters

angle

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