MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / INOUT_EXP

Function INOUT_EXP

gui/utils/anim_effects.py:82–97  ·  view source on GitHub ↗
(t, b, c, d)

Source from the content-addressed store, hash-verified

80
81
82def INOUT_EXP(t, b, c, d):
83 t = float(t)
84 b = float(b)
85 c = float(c)
86 d = float(d)
87
88 t1 = t / (d / 2)
89
90 if t == 0:
91 return b
92 elif t == d:
93 return b + c
94 elif t1 < 1:
95 return c / 2 * math.pow(2, 10 * (t1 - 1)) + b - c * 0.0005
96 else:
97 return c / 2 * 1.0005 * (-math.pow(2, -10 * (t1 - 1)) + 2) + b

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected