]> git.mxchange.org Git - simgear.git/commit
Revise SGBucket::get_width_m
authorJames Turner <zakalawe@mac.com>
Thu, 13 Feb 2014 18:49:16 +0000 (18:49 +0000)
committerJames Turner <zakalawe@mac.com>
Thu, 13 Feb 2014 18:49:38 +0000 (18:49 +0000)
commit00d8849a28bce9859dc01a9cc94f81e3cab12b66
tree5cd2cad186f978e0e7424fd06127c6ab56e7061d
parent6b9ce935cdb613694f7482bad3e9d1ce41b1e006
Revise SGBucket::get_width_m

- remove the 0.5 degree offset away from the equator, which was
  causing wrap-around at the poles
- add a new helper to get the highest latitude of a tile (which may
  be +/- 90 for the polar cap tiles), and use this to compute radius
- special case the polar-caps and return a fixed, small width so
  the tile-manager loads all tiles.
simgear/bucket/newbucket.cxx
simgear/bucket/newbucket.hxx
simgear/bucket/test_bucket.cxx