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

FloatMath.sqrt has been removed from Android SDK 23 #22

Open
dominicthomas opened this issue Oct 6, 2015 · 2 comments
Open

FloatMath.sqrt has been removed from Android SDK 23 #22

dominicthomas opened this issue Oct 6, 2015 · 2 comments

Comments

@dominicthomas
Copy link

The deprecated class has been removed.

"Historically these methods were faster than the equivalent double-based Math methods. On versions of Android with a JIT they became slower and have since been re-implemented to wrap calls to Math. Math should be used in preference.
All methods were removed from the public API in version 23."

http://developer.android.com/reference/android/util/FloatMath.html

The library now needs to use eg. (float) Math.sqrt(pvx_pvx + pvy_pvy);

@Almeros
Copy link
Owner

Almeros commented Jan 25, 2017

Should be updated in TwoFingerGestureDetector.java indeed.

@mariopce
Copy link

done in my pull request #32

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

3 participants