MCPcopy Index your code
hub / github.com/plotly/plotly.js / cartesian

Function cartesian

src/plots/geo/zoom.js:439–448  ·  view source on GitHub ↗
(spherical)

Source from the content-addressed store, hash-verified

437}
438
439function cartesian(spherical) {
440 var lambda = spherical[0] * radians;
441 var phi = spherical[1] * radians;
442 var cosPhi = Math.cos(phi);
443 return [
444 cosPhi * Math.cos(lambda),
445 cosPhi * Math.sin(lambda),
446 Math.sin(phi)
447 ];
448}
449
450function dot(a, b) {
451 var s = 0;

Callers 1

positionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…