diff options
author | Ansis Brammanis <brammanis@gmail.com> | 2017-06-06 15:43:39 -0400 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-06-06 14:13:31 -0700 |
commit | facc3d54a00f393b5c2f5e3b0ff3494015c9d942 (patch) | |
tree | f65a33b03023bd79cca0ad0fc4ed9215eec1481f /platform/android/MapboxGLAndroidSDK/src/main/java/com | |
parent | 45327b6ac46f8b574a767e20ee6a18ab23936db6 (diff) | |
download | qtlocation-mapboxgl-facc3d54a00f393b5c2f5e3b0ff3494015c9d942.tar.gz |
fix #8300 flyTo for close points
The isClose threshold is switched from 0.000001 pixels to 1 pixel.
As a backup, it checks whether r0 and r1 are finite. It might be
possible to have just the threshold check or just the finiteness check,
but I don't see the harm in having both.
std::abs(w0 - w1) < 0.000001 is removed because it doesn't look like
it's needed. All calculations should run fine even if w0 === w1.
Finally, the point interpolation is tweaked so that at the end of the
flying (when k === 1) it ends up at the exact end point. I didn't see
any bugs related to this, but it seems like a good thing to have
explicitly.
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com')
0 files changed, 0 insertions, 0 deletions