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

Function d3_geo_cartesianAdd

explainshell/web/static/js/d3.v3.js:2230–2234  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

2228 return [ a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0] ];
2229 }
2230 function d3_geo_cartesianAdd(a, b) {
2231 a[0] += b[0];
2232 a[1] += b[1];
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 }

Callers 1

intersectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected