]> git.mxchange.org Git - simgear.git/commit
fix wrong bucket calculation for western hemisphere, close to poles, full-degree...
authortorsten <torsten>
Fri, 27 Mar 2009 22:38:54 +0000 (22:38 +0000)
committerTim Moore <timoore@redhat.com>
Mon, 30 Mar 2009 16:43:39 +0000 (18:43 +0200)
commit26b4776394725e82d043740651562682771a27bf
tree32f0c66f2d7916f8890ac183803fea72213b166d
parent81a44d1340b963642a584214992120e7c8b5ea79
fix wrong bucket calculation for western hemisphere, close to poles, full-degree-longitude calculations.
set_bucket computed false left border, if the span was greater than 1, longitudes were less than zero
and longitudes were within SG_EPSILON on a full degree. Example: -179.0, +87.5 returned -176, 87
but should return -180, 87.
Discovered by Brian Schack
simgear/bucket/newbucket.cxx