refactor!(shared): remove unused constants and deprecated methods

This commit is contained in:
sankalp committed 2026-07-09 18:56:05 +05:45
1 parent 1403c5adc0
commit de9ab766c4
9 files changed
+4 -158

No files matched your search

-7
View File
@@ -19,13 +19,6 @@ def lerp(start: float, end: float, progress: float) -> float:
return start + (end - start) * progress
@lru_cache(maxsize=512)
def steps(n: int, progress: float, start_jump: bool = False) -> float:
if start_jump:
return min(int(progress * n), n - 1) / (n - 1) if n > 1 else 0.0
return min(int(progress * n + 1e-10), n) / n
@lru_cache(maxsize=512)
def cubic_bezier(
x1: float, y1: float, x2: float, y2: float, progress: float, epsilon=1e-6