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

Moved MathUtils from mapbox-java2.x telemetry to mapbox-java3.0 servi… #719

Closed
wants to merge 1 commit into from

Conversation

osana
Copy link
Contributor

@osana osana commented Feb 12, 2018

Add MathUtils to services-core.
It used to be part of telemetry

Copy link
Contributor

@Guardiola31337 Guardiola31337 left a 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) {
Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here ☝️

Copy link
Contributor

@Guardiola31337 Guardiola31337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link
Member

@tobrun tobrun left a 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).

@Guardiola31337
Copy link
Contributor

MathUtils will remain as part of the Maps SDK 👀 mapbox/mapbox-gl-native#11182 (comment)

Closing here without merging.

@Guardiola31337 Guardiola31337 deleted the osana-math-utils branch February 13, 2018 16:20
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

Successfully merging this pull request may close these issues.

3 participants