float[] calculateSizeAndXyAmount(float mouseDeltaX,float mouseDeltaY,float rotation){
  float mouseDragAngle=MathUtils.atan2(mouseDeltaY,mouseDeltaX) * MathUtils.radDeg;
  float deltaA=rotation - mouseDragAngle;
  float c=(float)Math.sqrt(mouseDeltaX * mouseDeltaX + mouseDeltaY * mouseDeltaY);
  float a=c * MathUtils.cosDeg(deltaA);
  float xComponent=a * MathUtils.cosDeg(rotation);
  float yComponent=a * MathUtils.sinDeg(rotation);
  return new float[]{a,xComponent,yComponent};
}

float [ ] calculateSizeAndXyAmount ( float mouseDeltaX , float mouseDeltaY , float rotation ) { float mouseDragAngle = MathUtils . atan2 ( mouseDeltaY , mouseDeltaX ) * MathUtils . radDeg ; float deltaA = rotation - mouseDragAngle ; float c = ( float ) Math . sqrt ( mouseDeltaX * mouseDeltaX + mouseDeltaY * mouseDeltaY ) ; float a = c * MathUtils . cosDeg ( deltaA ) ; float xComponent = a * MathUtils . cosDeg ( rotation ) ; float yComponent = a * MathUtils . sinDeg ( rotation ) ; return new float [ ] { a , xComponent , yComponent } ; }
on every anchor drag calculates width / height , x and y amounts .
