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

Function d3_ease_cubicInOut

explainshell/web/static/js/d3.v3.js:4919–4924  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

4917 return t * t * t;
4918 }
4919 function d3_ease_cubicInOut(t) {
4920 if (t <= 0) return 0;
4921 if (t >= 1) return 1;
4922 var t2 = t * t, t3 = t2 * t;
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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected