MCPcopy Create free account
hub / github.com/idank/explainshell / d3_geo_cartesianScale

Function d3_geo_cartesianScale

explainshell/web/static/js/d3.v3.js:2235–2237  ·  view source on GitHub ↗
(vector, k)

Source from the content-addressed store, hash-verified

2233 a[2] += b[2];
2234 }
2235 function d3_geo_cartesianScale(vector, k) {
2236 return [ vector[0] * k, vector[1] * k, vector[2] * k ];
2237 }
2238 function d3_geo_cartesianNormalize(d) {
2239 var l = Math.sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
2240 d[0] /= l;

Callers 1

intersectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected