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