Code example for PointF

Methods: set

0
                                    deltaY = -y;
                                else if (y + deltaY < -bottom)
                                    deltaY = -(y + bottom);
                            } 
                            matrix.postTranslate(deltaX, deltaY);
                            last.set(curr.x, curr.y);
                        } 
                        break; 
 
                    case MotionEvent.ACTION_UP:
                        mode = NONE;
                        int xDiff = (int) Math.abs(curr.x - start.x);
                        int yDiff = (int) Math.abs(curr.y - start.y);
                        if (xDiff < CLICK && yDiff < CLICK)
                            performClick();
                        break; 
 
                    case MotionEvent.ACTION_POINTER_UP:
                        mode = NONE;
                        break; 
                }