Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant