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

Function cartesian

external/.d3.js:9993–9996  ·  view source on GitHub ↗
(spherical)

Source from the content-addressed store, hash-verified

9991}
9992
9993function cartesian(spherical) {
9994 var lambda = spherical[0], phi = spherical[1], cosPhi = cos$1(phi);
9995 return [cosPhi * cos$1(lambda), cosPhi * sin$1(lambda), sin$1(phi)];
9996}
9997
9998function cartesianDot(a, b) {
9999 return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];

Callers 4

linePointFunction · 0.85
circleRadiusFunction · 0.85
polygonContainsFunction · 0.85
intersectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected