]> git.mxchange.org Git - simgear.git/commit
Fix bug in SGMisc<T>:: normalizePeriodic()
authorTorsten Dreyer <Torsten@t3r.de>
Mon, 17 Jan 2011 18:51:29 +0000 (19:51 +0100)
committerTorsten Dreyer <Torsten@t3r.de>
Mon, 17 Jan 2011 18:51:29 +0000 (19:51 +0100)
commite988dc0e421744fe71b7cdc74b8ff081becfc31d
treeb75c88eaaba270eef7051c026a0a219535c8be2d
parent7d544dee4790d85b3b1d7a1b688e55414a1756f5
Fix bug in SGMisc<T>:: normalizePeriodic()

SGMisc<T>::normalizePeriodic(min,max,value) returned zero for
all values less than min.
Example:
A call of normalizePeriodic(0,twopi(),-pi()) returned zero
where the correct value would be 3*pi().
simgear/math/SGMisc.hxx