Пример #1
0
 def radius_func(t):
     # Get larger until the middle, then get smaller again.
     if t < 0.5:
         return lerp(0, 3.5, t)
     else:
         return lerp(3.5, 0, t)
Пример #2
0
 def line(t):
     x = lerp(start.x, end.x, t)
     y = lerp(start.y, end.y, t)
     z = lerp(start.z, end.z, t)
     return (x, y, z)