Android Two finger rotation
Improvements of the class: angle returned is total since rotation has begun removing unnecessary functions simplification get position of first pointer only after second pointer is down public class RotationGestureDetector { private static final int INVALID_POINTER_ID = -1; private float fX, fY, sX, sY; private int ptrID1, ptrID2; private float mAngle; private OnRotationGestureListener mListener; public … Read more