isRight

private fun isRight(angle: Double): Boolean

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

A right gesture is registered if the angle is in [0.75π, 1.25π).

Return

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

Parameters

angle

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