xyz-to-latlon
Converts to x,y,z position on a unit sphere to latitude,longitude.
Usage
var xyzToLatLon = //var coord = //[51.507222, -0.1275]
API
xyzToLatLon(normalizedPosition, [out])
Converts to x,y,z position on a unit sphere to latitude,longitude.
normalizedPosition
: vec3, position on a unit sphereout
: vec2
Returns out or new vec2
with lat,lon coordinates.
License
MIT, see LICENSE.md for details.