MCPcopy Create free account
hub / github.com/breck7/scroll / spherical

Function spherical

external/.d3.js:9989–9991  ·  view source on GitHub ↗
(cartesian)

Source from the content-addressed store, hash-verified

9987}
9988
9989function spherical(cartesian) {
9990 return [atan2$1(cartesian[1], cartesian[0]), asin$1(cartesian[2])];
9991}
9992
9993function cartesian(spherical) {
9994 var lambda = spherical[0], phi = spherical[1], cosPhi = cos$1(phi);

Callers 3

linePointFunction · 0.85
circleStreamFunction · 0.85
intersectFunction · 0.85

Calls 1

asin$1Function · 0.85

Tested by

no test coverage detected