utils/lerp library

Functions

lerp(double a, double b, double t) double
lerpAngle(double start, double end, double fraction, {double range = 1, bool shortestPath = true}) double
Imagine a circle with a range of 0, range. If shortestPath is true, the shortest path between start and end will be used. If shortestPath is false, the longest path between start and end will be used.