summaryrefslogtreecommitdiffstats
path: root/core/device.h
diff options
context:
space:
mode:
authorGravatar Doug Junkins <junkins@foghead.com>2019-04-30 06:53:31 -0700
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-04-30 23:32:50 +0200
commit14a763a6a0148a42fad06717bd2532181a54c626 (patch)
treed8b71f0c9a2d33d40d60aeccb44e12111abcb2e0 /core/device.h
parent154792ffd1c217e5c1c9774b5593a753ae553601 (diff)
downloadsubsurface-14a763a6a0148a42fad06717bd2532181a54c626.tar.gz
Bugfix for algorithm in get_distance()
Fixed bug in the Haversine function in get_distance() based on algorithm at https://www.movable-type.co.uk/scripts/latlong.html and added bounds to the 'a' term to avoid floating point errors for antipodal points. Signed-off-by: Doug Junkins <junkins@foghead.com>
Diffstat (limited to 'core/device.h')
0 files changed, 0 insertions, 0 deletions