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

Function d3_geo_cartesianNormalize

explainshell/web/static/js/d3.v3.js:2238–2243  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

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;
2241 d[1] /= l;
2242 d[2] /= l;
2243 }
2244 function d3_true() {
2245 return true;
2246 }

Callers 1

d3_geo_circleAngleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected