MCPcopy Create free account
hub / github.com/microsoft/SandDance / gamma

Function gamma

docs/app/js/sanddance-app.js:128278–128282  ·  view source on GitHub ↗
(y)

Source from the content-addressed store, hash-verified

128276 return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : (0, _constantJsDefault.default)(isNaN(a) ? b : a);
128277}
128278function gamma(y) {
128279 return (y = +y) === 1 ? nogamma : function(a, b) {
128280 return b - a ? exponential(a, b, y) : (0, _constantJsDefault.default)(isNaN(a) ? b : a);
128281 };
128282}
128283function nogamma(a, b) {
128284 var d = b - a;
128285 return d ? linear(a, d) : (0, _constantJsDefault.default)(isNaN(a) ? b : a);

Callers

nothing calls this directly

Calls 1

exponentialFunction · 0.70

Tested by

no test coverage detected