-
Notifications
You must be signed in to change notification settings - Fork 120
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
Moved MathUtils from mapbox-java2.x telemetry to mapbox-java3.0 servi… #719
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This addresses mapbox/mapbox-gl-native#10999 (diff)
After removing never used methods convertNativeBearing
and differenceBetweenAngles
this should be ready to go 🚀
* @param nativeBearing bearing value coming from core | ||
* @return bearing in degrees starting from 0 rotating clockwise | ||
*/ | ||
public static double convertNativeBearing(double nativeBearing) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used in MapboxGLAndroidSDK
so no need to expose it.
We should remove it.
* @param beta Second angle in degrees | ||
* @return Smallest angle between two angles. | ||
*/ | ||
public static double differenceBetweenAngles(double alpha, double beta) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here ☝️
86436bd
to
99806c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's hold with merging until we get consensus on mapbox/mapbox-gl-native#11182 (comment).
Closing here without merging. |
Add MathUtils to services-core.
It used to be part of telemetry