summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/utils/MathUtils.java
Commit message (Collapse)AuthorAgeFilesLines
* [android] execute quickzoom scale change based on the Y axis delta changeŁukasz Paczos2019-08-151-0/+15
| | | | | | Using finger's Y axis position allows for a linear zoom additions/deductions during the quick-zoom changes. This is in contrast to the previously used scale factor, which is based on the current span (distance from the origin) to previous span ratio and increases the closer the finger is to the origin of a gesture because the values are smaller. The scale ratio based changes are also reliant on series of motion events' values and because the Android framework can skip some events, going back and forth during a quick-zoom might not have resulted in the same transformation. This was reproduced by the round-tripping test introduced in this commit.
* [android] Integration of the new events library (#10999)Pablo Guardiola2018-02-131-0/+49
| | | | | | | | | | | | | | | | | | | | * [android] integration of the new events library * JNI Bug - current build with JNI bug * fix #10999 comments * Clean-up - clean-up timbers and test code * [android] fix sdk identifier and sdk version * [android] merge from master (MAS 3.0) * [android] bump events lib version to 3.0.0-beta.1 and remove never used methods from math utils class
* [android] Extract telemetry into MASAntonio Zugaldia2017-02-031-66/+0
| | | | | | * [android] add the mapbox-android-telemetry module dependency. * update javadoc
* Adds checkstyle to CI (#7442)Cameron Mace2016-12-161-52/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * adds checkstyle to CI * fixed gradlew path * resolved testapp checkstyle violations * added back mapboxMap variable for test * checkstyle annotations * checkstyle SDK round 1 * maps package checkstyle * rest of SDK checkstyle * checkstyle gesture library * checkstyle test * finished rest of test checkstyle * resolved all checkstyle errors * fixed class name * removed old test file * fixed camera postion test * fixed native crash
* Cherry pick release v4.2.0 (#6944)Tobrun2016-11-091-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | * [android] - MyLocationView should facing above when location and compass bearing tracking are enabled. (#6829) * [android] - use current animated rotation value for calculating animated marker rotation difference (#6826) fix unit tests, input limiting is not handled by animateRotationBy instead of MarkerView. Changed test to validate if method was called with correct value. * [android] - only calculated offset margins for InfoWindow if View is found in current viewport, added example to the test app to test for regressions (#6877) * upgraded okhttp dependency to latest version (#6880) * Cancelable callback invocation (#6891) * [android] - allow onCancel to be invoked from camera cancel callbacks * set to null after finish * [android] - using bearing clockwise versus counterclockwise (#6917) * [android] - using bearing clockwise versus counterclockwise * fixup brackets * [android] - convert bearing values from core to Android SDK equivalent.
* [core] Privatize math.hpp and vec.hppJohn Firebaugh2016-05-051-1/+1
|
* [android] #4475 - Only wrapping when needed in LatLng.wrap(). Making Javadoc ↵Brad Leege2016-03-251-1/+1
| | | | more clear. Making tests consistent.
* [android] #4475 - Introducing LatLng.wrap() and removing usage of wrap() in ↵Brad Leege2016-03-251-0/+19
| | | | JNI's nativeLatLngForPixel()
* [android] #3754 - newLatLngBounds: unit tests for LatLng and LatLngBounds, ↵Tobrun2016-02-021-0/+11
| | | | | | | | | | builder pattern + refactoring. [android] #3754 - Working version using the underlying VisibleCoorindateBounds [android] #3754 - refactor Camera api inside maps package, correctly use factory pattern, LatLngBounds hooks into camera API [android] #3754 - cleanup old API
* [android] Camera APIBrad Leege2015-12-181-0/+16