title: Scaling view around arbitrary point
body: <p>How can I perform scaling around fixed(focus) point? i.e. focus should stay on the same position while I'm scaling.I use following code:</p>
  
  <pre><code>   public void scaleAroundPoint(float scale,float focusX,float focusY) {
       float oldX=focusX/this.getScaleX();
       float oldY=focusY/this.getScaleY();
       float oldScale=this.getScaleX();
       this.setScaleX(scale);
       this.setScaleY(scale);
       float newX=focusX/this.getScaleX();
       float newY=focusY/this.getScaleY();
       float dx=oldX-newX;
       float dy=oldY-newY;
       this.setX(this.getX()-dx);
       this.setY(this.getY()-dy);
  }
  </code></pre>
  
  <p>But it results in focus is not the point I pass in focusX,focusY</p>
  
  <p>PS:
  The setPivotX,setPivotY methods are not suitable for me,since I'm also performing 2-axis scrolling simultaniously with zooming so its preferable the pivot point stays in 0,0</p>