MCPcopy Index your code
hub / github.com/microsoft/SandDance / exp

Function exp

docs/app/js/sanddance-app.js:75135–75145  ·  view source on GitHub ↗
(out, a)

Source from the content-addressed store, hash-verified

75133 return out;
75134}
75135function exp(out, a) {
75136 var x = a[0], y = a[1], z = a[2], w = a[3];
75137 var r = Math.sqrt(x * x + y * y + z * z);
75138 var et = Math.exp(w);
75139 var s = r > 0 ? et * Math.sin(r) / r : 0;
75140 out[0] = x * s;
75141 out[1] = y * s;
75142 out[2] = z * s;
75143 out[3] = et * Math.cos(r);
75144 return out;
75145}
75146function ln(out, a) {
75147 var x = a[0], y = a[1], z = a[2], w = a[3];
75148 var r = Math.sqrt(x * x + y * y + z * z);

Callers 6

powFunction · 0.70
panLogFunction · 0.70
zoomLogFunction · 0.70
tanhFunction · 0.70
sinhFunction · 0.70
coshFunction · 0.70

Calls 5

pointsFunction · 0.70
visitPointsFunction · 0.70
olsFunction · 0.70
rSquaredFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected