Just wondering if there are methods already implemented for handling linear interpolation between two numbers in foundation/something else that comes with Xcode? It\'s hardly an
No, but it's an easy one-liner:
inline double lerp(double a, double b, double t) { return a + (b - a) * t; } inline float lerpf(float a, float b, float t) { return a + (b - a) * t; }