Could any please help me convert this to python? I don't how to translate the conditional operators from C++ into python?
Math.easeInExpo = function (t, b, c, d) {
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
Could any please help me convert this to python? I don't how to translate the conditional operators from C++ into python?
Math.easeInExpo = function (t, b, c, d) {
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
def easeInExpo( t, b, c, d ):
return b if t == 0 else c * pow( 2, 10 * (t/d - 1) ) + b