Code example for PointF

Methods: set

0
            return true; 
        } 
    } 
 
    private PointF getMidPoint(float x1, float y1, float x2, float y2) {
        PointF point = new PointF();
 
        float x = x1 + x2;
        float y = y1 + y2;
 
        point.set(x / 2, y / 2);
 
        return point;
    } 
 
    public void setMultitouchPoints(MotionEvent event) {
 
        touchPoints.clear();
 
        int pointerIndex = 0;