Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

getScale方法的疑问 #76

Open
chenleejr opened this issue May 21, 2019 · 0 comments
Open

getScale方法的疑问 #76

chenleejr opened this issue May 21, 2019 · 0 comments

Comments

@chenleejr
Copy link

chenleejr commented May 21, 2019

看到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这两个数来计算吗?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant