PhotoDraweeView icon indicating copy to clipboard operation
PhotoDraweeView copied to clipboard

getScale方法的疑问

Open chenleejr opened this issue 5 years ago • 0 comments

看到Attacher.java里getScale方法是这么写的

@Override public float getScale() {
        return (float) Math.sqrt(
                (float) Math.pow(getMatrixValue(mMatrix, Matrix.MSCALE_X), 2) + (float) Math.pow(
                        getMatrixValue(mMatrix, Matrix.MSKEW_Y), 2));
    }

不应该是拿MSCALE_X和MSCALE_Y这两个数来计算吗?

chenleejr avatar May 21 '19 12:05 chenleejr