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

Function d3_ease_poly

explainshell/web/static/js/d3.v3.js:4925–4929  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

4923 return 4 * (t < .5 ? t3 : 3 * (t - t2) + t3 - .75);
4924 }
4925 function d3_ease_poly(e) {
4926 return function(t) {
4927 return Math.pow(t, e);
4928 };
4929 }
4930 function d3_ease_sin(t) {
4931 return 1 - Math.cos(t * π / 2);
4932 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected