Code example for PointF

Methods: set

0
        @Override 
        public boolean onScale(ScaleGestureDetector detector) {
            float scaleFactor = detector.getScaleFactor();
            if (scaleFactor!=0f && scaleFactor!=1.0f){
                scaleFactor = 1/scaleFactor;
                screenFocus.set(detector.getFocusX(),detector.getFocusY());
                scene.getViewport().zoom(
                        scaleFactor,
                        screenFocus);
                invalidate();
            } 
            lastScaleTime = System.currentTimeMillis();
            return true; 
        } 
    } 
 
    //endregion 
 
 
    //region implements SurfaceHolder.Callback 
    @Override