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

Function cartesianNormalizeInPlace

external/.d3.js:10016–10019  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

10014
10015// TODO return d
10016function cartesianNormalizeInPlace(d) {
10017 var l = sqrt$2(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
10018 d[0] /= l, d[1] /= l, d[2] /= l;
10019}
10020
10021var lambda0$1, phi0, lambda1, phi1, // bounds
10022 lambda2, // previous lambda-coordinate

Callers 3

linePointFunction · 0.85
circleRadiusFunction · 0.85
polygonContainsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected