public override float Compute(float t, float b, float c, float d) { if (t < d / 2) { return(In.Compute(t * 2, 0, c, d) * .5f + b); } else { return(Out.Compute(t * 2 - d, 0, c, d) * .5f + c * .5f + b); } }