summaryrefslogtreecommitdiff
path: root/cmake/test-files.cmake
diff options
context:
space:
mode:
authorAnsis Brammanis <ansis.brammanis@gmail.com>2017-06-06 16:31:12 -0400
committerGitHub <noreply@github.com>2017-06-06 16:31:12 -0400
commitc878f5f7da123fbdbbafbeafb0e5556e78abef33 (patch)
tree40a7a93e040bf04b6d511d25e539d14f3f2c160c /cmake/test-files.cmake
parent15791b58695cebc504a2b7e59f140618bd98b87e (diff)
downloadqtlocation-mapboxgl-c878f5f7da123fbdbbafbeafb0e5556e78abef33.tar.gz
fix #8300 flyTo for close points (#9199)
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 'cmake/test-files.cmake')
0 files changed, 0 insertions, 0 deletions