Created
June 9, 2015 15:36
-
-
Save ericrius1/50eeb2098ee9fe898406 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var phi = (90 - latitude) * Math.PI / 180; | |
var theta = (180 - longitude) * Math.PI / 180; | |
var point = new THREE.Vector3( | |
EARTH_RADIUS * Math.sin(phi) * Math.cos(theta), | |
EARTH_RADIUS * Math.cos(phi), | |
EARTH_RADIUS * Math.sin(phi) * Math.sin(theta) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment