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

Function INOUT_CIRC

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

Source from the content-addressed store, hash-verified

24
25
26def INOUT_CIRC(t, b, c, d):
27 t = float(t)
28 b = float(b)
29 c = float(c)
30 d = float(d)
31 t1 = t / (d / 2)
32
33 if (t / (d / 2)) < 1:
34 return -c / 2 * (math.sqrt(1 - (t / (d / 2)) ** 2) - 1) + b
35 else:
36 return c / 2 * (math.sqrt(1 - (t1 - 2) ** 2) + 1) + b
37
38
39def IN_CUBIC(t, b, c, d):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected