]> Pileus Git - grits/commit - src/roam.h
Convert from xyz to lle as the main roam coordinates
authorAndy Spencer <andy753421@gmail.com>
Sat, 19 Dec 2009 22:59:49 +0000 (22:59 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sat, 19 Dec 2009 22:59:49 +0000 (22:59 +0000)
commitb11fd4c409529141ee61781fc99aa2238f93e9ce
tree3065ac300655c88e498925f4d3e2ba61f809c644
parent1ccb2426332856ef04f0bfb35716520a94e0d32c
Convert from xyz to lle as the main roam coordinates

This keeps splits along latitude lines instead of along great circles.
It is a little less accurate, but makes texture mapping much simpler, at
least with Mercator projections.

If we ever manage to get lle->xyz conversions done in an OpenGL shader,
this should make the transition a little easier as well.

     Old Way           New Way
    .-''/'''-.        .-''/'''-.
   / __/_____ \      /.__/____..\
  /''  |     ''\    /    |       \
  *..__*_____..*    *..__*_____..*
  \    |       /    \    |       /
   \   \      /      \   \      /
    '-..\...-'        '-..\...-'
src/gis-util.c
src/gis-util.h
src/roam.c
src/roam.h