Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using cosineAndSine to convert to WebMercator. #2111

Merged
merged 2 commits into from
Sep 2, 2014

Conversation

fstoner
Copy link
Contributor

@fstoner fstoner commented Sep 2, 2014

This addresses #2110 by using a higher precision implementation of the cosine/sine algorithm.

@pjcozzi
Copy link
Contributor

pjcozzi commented Sep 2, 2014

CC @GatorScott

@pjcozzi
Copy link
Contributor

pjcozzi commented Sep 2, 2014

Thanks @fstoner. This is a nice catch and awesome fix.

@pjcozzi
Copy link
Contributor

pjcozzi commented Sep 2, 2014

For the background I mentioned in person, see Slides 39-43 from @kring's talk: http://cesiumjs.org/presentations/Rendering%20the%20Whole%20Wide%20World%20on%20the%20World%20Wide%20Web.pptx

@pjcozzi
Copy link
Contributor

pjcozzi commented Sep 2, 2014

@fstoner no interest in separate cos/sin functions to save the adds? Or is that something you are considering for later?

@fstoner
Copy link
Contributor Author

fstoner commented Sep 2, 2014

@pjcozzi The sine/cosine are coupled summations at the moment. So we can keep this as one function for now. Perhaps we can optimize further later.

@pjcozzi
Copy link
Contributor

pjcozzi commented Sep 2, 2014

This works, but I can't reproduce the original artifact on my GPU. No worries, I saw the before/after on @fstoner's machine.

pjcozzi added a commit that referenced this pull request Sep 2, 2014
Using cosineAndSine to convert to WebMercator.
@pjcozzi pjcozzi merged commit a747af5 into CesiumGS:master Sep 2, 2014
@pjcozzi pjcozzi deleted the sineLatitude branch September 2, 2014 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants